diff options
author | Devaev Maxim <[email protected]> | 2019-04-27 04:14:54 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-27 04:14:54 +0300 |
commit | 3476f52da9728995c978394748cec812d554ec2f (patch) | |
tree | 93ed629385b536ebb0e5bb0f984ea5085d0050a5 /kvmd/apps/htpasswd | |
parent | c40f13e2d79c2ed23502e3c49f9b1e8c7d23f1c2 (diff) |
apps: init only required sections
Diffstat (limited to 'kvmd/apps/htpasswd')
-rw-r--r-- | kvmd/apps/htpasswd/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmd/apps/htpasswd/__init__.py b/kvmd/apps/htpasswd/__init__.py index a223fc16..c6f56087 100644 --- a/kvmd/apps/htpasswd/__init__.py +++ b/kvmd/apps/htpasswd/__init__.py @@ -98,7 +98,11 @@ def _cmd_delete(config: Section, options: argparse.Namespace) -> None: # ===== def main(argv: Optional[List[str]]=None) -> None: - (parent_parser, argv, config) = init(add_help=False, argv=argv) + (parent_parser, argv, config) = init( + add_help=False, + sections=["logging", "kvmd"], + argv=argv, + ) parser = argparse.ArgumentParser( prog="kvmd-htpasswd", description="Manage KVMD users (htpasswd auth only)", |