Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bertbesser committed Apr 17, 2021
1 parent b9e6f05 commit b34ef19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/popper/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ def __apply_substitution(wf_element, k, v, used_registry):
log.fail("Substitutions not allowed on dictionary keys")
if type(wf_element[ek]) == str and k in wf_element[ek]:
log.debug(f"Applying substitution to value associated to key {k}")
wf_element[ek] = wf_element[ek].replace(k, v)
used_registry[k] = 1
else:
wf_element[ek] = WorkflowParser.__apply_substitution(
wf_element[ek], k, v, used_registry
)
used_registry[k] = 1

return wf_element

Expand Down

0 comments on commit b34ef19

Please sign in to comment.