diff options
author | Devaev Maxim <[email protected]> | 2019-04-28 21:01:03 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-28 21:01:03 +0300 |
commit | e13b5027d6093cbacccf49e9af9c46c0dc1ef374 (patch) | |
tree | 2369edf0a1811af471d7da2e74701825eac7968a /kvmd/plugins/auth/htpasswd.py | |
parent | 26338c5acfaf7c05cc3c8605d97e5b1e58a9280c (diff) |
load only required plugins
Diffstat (limited to 'kvmd/plugins/auth/htpasswd.py')
-rw-r--r-- | kvmd/plugins/auth/htpasswd.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kvmd/plugins/auth/htpasswd.py b/kvmd/plugins/auth/htpasswd.py index 3e7e52d9..46576727 100644 --- a/kvmd/plugins/auth/htpasswd.py +++ b/kvmd/plugins/auth/htpasswd.py @@ -33,13 +33,11 @@ from . import BaseAuthService # ===== class Plugin(BaseAuthService): - PLUGIN_NAME = "htpasswd" - def __init__(self, path: str) -> None: # pylint: disable=super-init-not-called self.__path = path @classmethod - def get_options(cls) -> Dict[str, Option]: + def get_plugin_options(cls) -> Dict[str, Option]: return { "file": Option("/etc/kvmd/htpasswd", type=valid_abs_path_exists, unpack_as="path"), } |