From b18c754224be453f0827f649782511efe480b59d Mon Sep 17 00:00:00 2001 From: Guillaume Tucker Date: Thu, 27 Jul 2023 17:34:53 +0200 Subject: [PATCH] lava: use new dotted-key syntax for storage settings section Update how the name of the storage settings section is defined by following the TOML dotted-key syntax with sub-tables. Signed-off-by: Guillaume Tucker --- src/lava_callback.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lava_callback.py b/src/lava_callback.py index e3f30204e..96ab5594c 100644 --- a/src/lava_callback.py +++ b/src/lava_callback.py @@ -29,8 +29,7 @@ def _get_api_helper(api_config_name, api_token): def _get_storage(storage_config_name): storage_config = CONFIGS['storage_configs'][storage_config_name] - section = SETTINGS[(':'.join(('storage', storage_config_name)))] - storage_cred = section['storage_cred'] + storage_cred = SETTINGS['storage'][storage_config_name]['storage_cred'] return kernelci.storage.get_storage(storage_config, storage_cred)