Skip to content

Commit

Permalink
testing file based approach
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayamadhavareddy committed May 17, 2024
1 parent 752dfbc commit 4eba367
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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)
Expand Down

0 comments on commit 4eba367

Please sign in to comment.