From bfb997ae956efbbcbc2777e6308a668bf81cd780 Mon Sep 17 00:00:00 2001 From: gyulaid Date: Sun, 17 Apr 2022 22:22:06 +0200 Subject: [PATCH] Grabber support in gen_dict --- alice-ci/src/alice/runners/pyutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alice-ci/src/alice/runners/pyutils.py b/alice-ci/src/alice/runners/pyutils.py index 83b155c..e37fb60 100644 --- a/alice-ci/src/alice/runners/pyutils.py +++ b/alice-ci/src/alice/runners/pyutils.py @@ -137,7 +137,10 @@ def gen_dict(list_of_dicts): for _dict in list_of_dicts: 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: raise ConfigException(f"Invalid dict item: {_dict}")