Skip to content

Commit

Permalink
Merge pull request #321 from caracal-pipeline/issue-320
Browse files Browse the repository at this point in the history
because order matters
  • Loading branch information
SpheMakh authored Jun 16, 2024
2 parents b5cacdb + 6672555 commit 9bcdb61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stimela/kitchen/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ def run(self, backend: Optional[Dict] = None, subst: Optional[Dict[str, Any]] =

# Since prevalidation will have populated default values for potentially missing parameters, use those values
# For parameters that aren't missing, use whatever value that was suplied
params = self.validated_params.copy()
params.update(**self.params)
# preserve order of specified params, to allow ordered substitutions to occur
params = self.params.copy()
params.update([(key, value) for key, value in self.validated_params.items() if key not in params])

skip_warned = False # becomes True when warnings are given

Expand Down

0 comments on commit 9bcdb61

Please sign in to comment.