Skip to content

Ensure 'envs' key exists in config before updating - #107

Open
mkardach wants to merge 1 commit into
getindata:developfrom
mkardach:k8s-parameters-loader-envs
Open

Ensure 'envs' key exists in config before updating#107
mkardach wants to merge 1 commit into
getindata:developfrom
mkardach:k8s-parameters-loader-envs

Conversation

@mkardach

@mkardach mkardach commented Mar 8, 2024

Copy link
Copy Markdown

Description

This PR updates the k8s_parameters_loader.py script to ensure that the envs key is present in the configuration dictionary before attempting to update it. Previously, the absence of the envs key would lead to a KeyError, disrupting the configuration process. The modification includes a conditional check that initializes envs as an empty dictionary if it is not already present, thus preventing any errors when updating the configuration with the DATAHUB_GMS_URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants