diff --git a/src/inputs.py b/src/inputs.py index 1e55a06..e09ecbd 100644 --- a/src/inputs.py +++ b/src/inputs.py @@ -30,10 +30,8 @@ def ensure_env_input(input_params: str): def value_to_aws_parameter(param_name, param_value): - print(f"param_name: {param_name}, param_value: {param_value}") parsed_value_json = ensure_json_input(param_value) - print(f"parsed: {parsed_value_json}") - if parsed_value_json is None: + if parsed_value_json is None or isinstance(parsed_value_json, dict) is False: return AwsParameter(name=param_name, value=param_value) value = parsed_value_json.get('value') if parsed_value_json.get('value') is not None else None param_type = parsed_value_json.get('type') if parsed_value_json.get('type') is not None else 'String' @@ -43,7 +41,6 @@ def value_to_aws_parameter(param_name, param_value): def parse_input_params(input_params: str): parsed_params_json = ensure_json_input(input_params) - print(f"parsed: {parsed_params_json}") if parsed_params_json is not None: return {key: value_to_aws_parameter(key, value) for key, value in parsed_params_json.items()} parsed_params_env = ensure_env_input(input_params)