summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-25 23:35:19 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-25 23:35:19 +0100
commitd767d8774613d7e9b2bd860b2604c7770eff2402 (patch)
treec7bf7243e895a9dc2a9fdfe7fc7a1be6044cfd62 /src/conf_mode
parent25eb2a82b29d02a332551975456743b3f791a6eb (diff)
downloadvyos-1x-d767d8774613d7e9b2bd860b2604c7770eff2402.tar.gz
vyos-1x-d767d8774613d7e9b2bd860b2604c7770eff2402.zip
https: T1443: remove duplicate CLI definition
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/https.py5
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=('-', '_'),