Skip to content

Commit

Permalink
fix: fix passed argument parsing (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y authored Mar 31, 2023
1 parent 13eaae6 commit a5d40e9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/package_io/parse_input.star
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ def parse_input(input_args):
if attr not in ATTR_TO_BE_SKIPPED_AT_ROOT and attr in input_args:
result[attr] = value
elif attr == "network_params":
for sub_attr in dir(input_args["network_params"]):
sub_value = input_args["network_params"]["sub_attr"]
# if its inserted we use the value inserted
if hasattr(input_args.network_params, sub_attr):
result["network_params"][sub_attr] = sub_value
for sub_attr in input_args["network_params"]:
sub_value = input_args["network_params"][sub_attr]
result["network_params"][sub_attr] = sub_value
elif attr == "participants":
participants = []
for participant in input_args["participants"]:
Expand Down

0 comments on commit a5d40e9

Please sign in to comment.