Skip to content

Commit

Permalink
Fix bugs in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
JayjeetAtGithub committed May 27, 2020
1 parent 3fdbf85 commit e8c1566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/popper/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ def __apply_substitutions(wf_data, substitutions=None, allow_loose=False):
# replace in steps
for step in wf_data["steps"]:
for _, step_attr in step.items():
Workflow._apply_substitution(step_attr, k, v, used)
WorkflowParser.__apply_substitution(step_attr, k, v, used)

for _, options_attr in wf_data.get("options", {}).items():
Workflow._apply_substitution(options_attr, k, v, used)
WorkflowParser.__apply_substitution(options_attr, k, v, used)

if not allow_loose and len(substitutions) != len(used):
log.fail("Not all given substitutions are used in " "the workflow file")
Expand Down

0 comments on commit e8c1566

Please sign in to comment.