summaryrefslogtreecommitdiff
path: root/kvmd/apps/htpasswd
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/apps/htpasswd')
-rw-r--r--kvmd/apps/htpasswd/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/htpasswd/__init__.py b/kvmd/apps/htpasswd/__init__.py
index 486f00e4..a223fc16 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 != "htpasswd":
- print("Warning: KVMD does not use htpasswd auth", file=sys.stderr)
- return config.kvmd.auth.htpasswd.file
+ if config.kvmd.auth.internal_type != "htpasswd":
+ raise SystemExit("Error: KVMD internal auth not using 'htpasswd' (now configured %r)" % (config.kvmd.auth.internal_type))
+ return config.kvmd.auth.internal.file
@contextlib.contextmanager