aboutsummaryrefslogtreecommitdiffstats
path: root/extras/config.py
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2023-11-28 19:00:23 -0500
committerScott Murray <scott.murray@konsulko.com>2023-11-28 19:06:50 -0500
commit38754722e08e1c9b48af39a11cc455916e1f9161 (patch)
tree891ba3ef1e00b2c87335d4cebe6c7c24ad4105be /extras/config.py
parent75e057bdb5ee7e663bd2d80055ffa2e961e14dbd (diff)
Fix connection security state saving
Fix parsing of connection security state from the .ini file to match what is getting written out, and update the canned default .ini file to match the changes. Bug-AGL: SPEC-4997 Change-Id: I49060a8bb4f08ba0ffa0cf1748bab2203716e032 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'extras/config.py')
-rw-r--r--extras/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/config.py b/extras/config.py
index 1a10719..f8e5ccb 100644
--- a/extras/config.py
+++ b/extras/config.py
@@ -82,7 +82,7 @@ def select_config(preferred_config):
KUKSA_CONFIG['ip'] = config[preferred_config]['ip']
KUKSA_CONFIG['port'] = config[preferred_config]['port']
KUKSA_CONFIG['protocol'] = config[preferred_config]['protocol']
- KUKSA_CONFIG['insecure'] = False if config[preferred_config]['insecure'] == 'false' else True
+ KUKSA_CONFIG['insecure'] = False if config[preferred_config]['insecure'] == 'False' else True
if config.has_option(preferred_config, 'cacert'):
KUKSA_CONFIG['cacertificate'] = config[preferred_config]['cacert'] if os.path.exists(
@@ -163,4 +163,4 @@ if not config.has_section('user-session'):
'token': "",
'tls_server_name': "",
}
- save_session_config(temp, 'default', 'default') \ No newline at end of file
+ save_session_config(temp, 'default', 'default')