From 79c6e9c6912a5ee2a3c2586760cdd985644c0e53 Mon Sep 17 00:00:00 2001 From: morsecodist Date: Mon, 24 Jan 2022 15:32:04 -0500 Subject: [PATCH] ignore missing defaults --- .../sfn-io-helper-lambdas/app/sfn_io_helper/stage_io.py | 8 ++++++-- version | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/terraform/modules/sfn-io-helper-lambdas/app/sfn_io_helper/stage_io.py b/terraform/modules/sfn-io-helper-lambdas/app/sfn_io_helper/stage_io.py index 86f344ac..bb6a9a33 100644 --- a/terraform/modules/sfn-io-helper-lambdas/app/sfn_io_helper/stage_io.py +++ b/terraform/modules/sfn-io-helper-lambdas/app/sfn_io_helper/stage_io.py @@ -98,9 +98,13 @@ def preprocess_sfn_input(sfn_state, aws_region, aws_account_id, state_machine_na sfn_state[get_output_uri_key(stage)] = os.path.join(output_path, f"{xform_name(stage)}_output.json") for compute_env in "SPOT", "EC2": memory_key = stage + compute_env + "Memory" - sfn_state.setdefault(memory_key, int(os.environ[memory_key + "Default"])) + memory_default_key = memory_key + "Default" + if memory_default_key in os.environ: + sfn_state.setdefault(memory_key, int(os.environ[memory_default_key])) vcpu_key = stage + compute_env + "Vcpu" - sfn_state.setdefault(vcpu_key, int(os.environ[vcpu_key + "Default"])) + vcpu_default_key = vcpu_key + "Default" + if vcpu_default_key in os.environ: + sfn_state.setdefault(vcpu_key, int(os.environ[vcpu_key + "Default"])) link_outputs(sfn_state) diff --git a/version b/version index 9a0d4477..b57957db 100644 --- a/version +++ b/version @@ -1 +1 @@ -v0.12.0-beta +v0.12.1-beta