From fd5779f967565994d947e43ae2e20c3f43a39957 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 31 Oct 2023 12:29:19 -0500 Subject: [PATCH] Fix KeyError accessing config. (#620) --- app/deploy/deployment_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/deploy/deployment_create.py b/app/deploy/deployment_create.py index a7cbe57e..04fdde4a 100644 --- a/app/deploy/deployment_create.py +++ b/app/deploy/deployment_create.py @@ -261,7 +261,7 @@ def init(ctx, config, output, map_ports_to_host): config_variables = _parse_config_variables(config) if config_variables: # Implement merge, since update() overwrites - orig_config = spec_file_content["config"] + orig_config = spec_file_content.get("config", {}) new_config = config_variables["config"] merged_config = {**new_config, **orig_config} spec_file_content.update({"config": merged_config})