Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alice
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
trinitas
alice
Commits
bfb997ae
Commit
bfb997ae
authored
3 years ago
by
gyulaid
Browse files
Options
Downloads
Patches
Plain Diff
Grabber support in gen_dict
parent
472ecc89
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
alice-ci/src/alice/runners/pyutils.py
+4
-1
4 additions, 1 deletion
alice-ci/src/alice/runners/pyutils.py
with
4 additions
and
1 deletion
alice-ci/src/alice/runners/pyutils.py
+
4
−
1
View file @
bfb997ae
...
...
@@ -137,7 +137,10 @@ def gen_dict(list_of_dicts):
for
_dict
in
list_of_dicts
:
try
:
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
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment