diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-25 23:35:19 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-25 23:35:19 +0100 |
commit | d767d8774613d7e9b2bd860b2604c7770eff2402 (patch) | |
tree | c7bf7243e895a9dc2a9fdfe7fc7a1be6044cfd62 /src/conf_mode/https.py | |
parent | 25eb2a82b29d02a332551975456743b3f791a6eb (diff) | |
download | vyos-1x-d767d8774613d7e9b2bd860b2604c7770eff2402.tar.gz vyos-1x-d767d8774613d7e9b2bd860b2604c7770eff2402.zip |
https: T1443: remove duplicate CLI definition
Diffstat (limited to 'src/conf_mode/https.py')
-rwxr-xr-x | src/conf_mode/https.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/https.py b/src/conf_mode/https.py index 053ee5d4a..37fa36797 100755 --- a/src/conf_mode/https.py +++ b/src/conf_mode/https.py @@ -61,10 +61,11 @@ def get_config(config=None): else: conf = Config() - if not conf.exists('service https'): + base = ['service', 'https'] + if not conf.exists(base): return None - https = conf.get_config_dict('service https', get_first_key=True) + https = conf.get_config_dict(base, get_first_key=True) if https: https['pki'] = conf.get_config_dict(['pki'], key_mangling=('-', '_'), |