Skip to content

Commit c2f9c45

Browse files
authored
Merge pull request #595 from bmeg/default-fix
Fixing workflow default behavior
2 parents f691bf1 + fe13960 commit c2f9c45

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cwltool/workflow.py

+7
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,14 @@ def __init__(self, toolpath_object, pos, **kwargs):
710710
for tool_entry in self.embedded_tool.tool[toolfield]:
711711
frag = shortname(tool_entry["id"])
712712
if frag == shortinputid:
713+
#if the case that the step has a default for a parameter,
714+
#we do not want the default of the tool to override it
715+
step_default = None
716+
if "default" in param and "default" in tool_entry:
717+
step_default = param["default"]
713718
param.update(tool_entry)
719+
if step_default is not None:
720+
param["default"] = step_default
714721
found = True
715722
bound.add(frag)
716723
break

0 commit comments

Comments
 (0)