From d8a5e3837152c7db21b96a585523481337247e6f Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 8 Apr 2019 06:19:02 +0300 Subject: basic -> htpasswd --- kvmd/apps/htpasswd/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kvmd/apps/htpasswd/__init__.py') diff --git a/kvmd/apps/htpasswd/__init__.py b/kvmd/apps/htpasswd/__init__.py index 10f90c79..486f00e4 100644 --- a/kvmd/apps/htpasswd/__init__.py +++ b/kvmd/apps/htpasswd/__init__.py @@ -44,9 +44,9 @@ from .. import init # ===== def _get_htpasswd_path(config: Section) -> str: - if config.kvmd.auth.type != "basic": - print("Warning: KVMD does not use basic auth", file=sys.stderr) - return config.kvmd.auth.basic.htpasswd + if config.kvmd.auth.type != "htpasswd": + print("Warning: KVMD does not use htpasswd auth", file=sys.stderr) + return config.kvmd.auth.htpasswd.file @contextlib.contextmanager @@ -101,7 +101,7 @@ def main(argv: Optional[List[str]]=None) -> None: (parent_parser, argv, config) = init(add_help=False, argv=argv) parser = argparse.ArgumentParser( prog="kvmd-htpasswd", - description="Manage KVMD users (basic auth only)", + description="Manage KVMD users (htpasswd auth only)", parents=[parent_parser], ) parser.set_defaults(cmd=(lambda *_: parser.print_help())) -- cgit v1.2.3