Skip to content

Commit

Permalink
debug action
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayamadhavareddy committed Apr 15, 2024
1 parent 417fe0d commit 95e6016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/aws_ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def run(aws_parameters: dict[str, AwsParameter]):
input_params = os.getenv('INPUT_PARAMS')
print(f"input_params: {input_params}")
params_inline = parse_input_params(input_params) if input_params is not None else {}
print("params_inline")
print(params_inline)
params_from_file = {}
params_file_path = os.getenv('INPUT_PARAMS_FILE_PATH')
print(f"params_file_path: {params_file_path}")
Expand Down
4 changes: 2 additions & 2 deletions src/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def env_to_param(env_line: str) -> AwsParameter:

def ensure_env_input(input_params: str):
param_lines = input_params.split(sep="\n")
print("ensure_env_input")
print(param_lines)
return [param_line.strip() for param_line in param_lines]


Expand All @@ -47,4 +45,6 @@ def parse_input_params(input_params: str):
return {key: value_to_aws_parameter(key, value) for key, value in parsed_params_json.items()}
parsed_params_env = ensure_env_input(input_params)
parsed_aws_params_env = [env_to_param(env_param) for env_param in parsed_params_env]
print("parsed_aws_params_env")
print(parsed_aws_params_env)
return {p.name: p for p in parsed_aws_params_env}

0 comments on commit 95e6016

Please sign in to comment.