diff options
author | Daniil Baturin <daniil@baturin.org> | 2023-11-30 13:58:39 +0000 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2023-11-30 13:58:39 +0000 |
commit | ad72670a1f7410a3c4a7e2021f0b7511156f5850 (patch) | |
tree | d53924c75daa2244e4a3fa029f1413f0daff2660 /src | |
parent | 50a78a29e3bbe6ccc2e070706133c06f6053a612 (diff) | |
download | vyos-1x-ad72670a1f7410a3c4a7e2021f0b7511156f5850.tar.gz vyos-1x-ad72670a1f7410a3c4a7e2021f0b7511156f5850.zip |
https: T5772: remove the default API key
The new verification code prevents it from being used,
but it's not a reason to keep it
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/http-api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/http-api.py b/src/conf_mode/http-api.py index 00f3d4f7f..2ade3476d 100755 --- a/src/conf_mode/http-api.py +++ b/src/conf_mode/http-api.py @@ -39,7 +39,7 @@ vyos_conf_scripts_dir=vyos.defaults.directories['conf_mode'] def get_config(config=None): http_api = deepcopy(vyos.defaults.api_data) x = http_api.get('api_keys') - if x is None: + if not x: default_key = None else: default_key = x[0] |