Browse Source

Grabber support in gen_dict

pull/31/head
Daniel Gyulai 3 years ago
parent
commit
bfb997ae95
  1. 5
      alice-ci/src/alice/runners/pyutils.py

5
alice-ci/src/alice/runners/pyutils.py

@ -137,7 +137,10 @@ def gen_dict(list_of_dicts):
for _dict in list_of_dicts: for _dict in list_of_dicts:
try: try:
return_dict[_dict["name"]] = _dict["value"] if isinstance(_dict["value"], str):
return_dict[_dict["name"]] = _dict["value"]
else:
return_dict[_dict["name"]] = grab_from(_dict["value"])
except KeyError: except KeyError:
raise ConfigException(f"Invalid dict item: {_dict}") raise ConfigException(f"Invalid dict item: {_dict}")

Loading…
Cancel
Save