Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 16, 2024
1 parent c0fb254 commit c3cdc2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,8 @@ def set_inputs_to_template(template, inputs):
value["default"] = False
elif value["type"] in ["map", "list"] and value["entry_schema"]["type"] not in ["map", "list"]:
try:
value["default"] = utils.get_list_values(name, inputs, value["entry_schema"]["type"], value["type"])
value["default"] = utils.get_list_values(name, inputs, value["entry_schema"]["type"],
value["type"])
except Exception as ex:
flash("Invalid input value '%s' specified: '%s'." % (name, ex), "warning")
value["default"] = []
Expand Down
1 change: 1 addition & 0 deletions app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ def get_list_values(name, inputs, value_type="string", retun_type="list"):
cont += 1
return values


def formatPortSpec(ports):
res = {}
if isinstance(ports, dict):
Expand Down

0 comments on commit c3cdc2c

Please sign in to comment.