Skip to content

Commit

Permalink
fix(function): rename variable in try command
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Jan 5, 2021
1 parent c248110 commit cefd6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queenbee_dsl/function/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _try(self, inputs: Dict[str, Any], folder: str = None) -> str:
assert ref.startswith('inputs.'), \
'All referenced values must start with {{inputs followed with' \
f' variable name. Invalid referenced value: {ref}'
var = ref.replace('inputs.', '')
var = ref.replace('inputs.', '').replace('-', '_')
command = command.replace('{%s}' % ref, str(inputs[var]))

for art in func.artifact_inputs:
Expand Down

0 comments on commit cefd6aa

Please sign in to comment.