Skip to content

Commit

Permalink
Correctly propagate requirements/hints on Workflow step. (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetron authored Sep 15, 2016
1 parent 876c0fc commit 63f5e50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cwltool/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ def __init__(self, toolpath_object, pos, **kwargs):
else:
self.id = "#step" + Text(pos)

kwargs["requirements"] = kwargs.get("requirements", []) + toolpath_object.get("requirements", [])
kwargs["hints"] = kwargs.get("hints", []) + toolpath_object.get("hints", [])

try:
if isinstance(toolpath_object["run"], dict):
self.embedded_tool = kwargs.get("makeTool")(toolpath_object["run"], **kwargs)
Expand Down Expand Up @@ -529,9 +532,6 @@ def job(self, joborder, output_callback, **kwargs):
joborder[field] = joborder[i["id"]]
del joborder[i["id"]]

kwargs["requirements"] = kwargs.get("requirements", []) + self.tool.get("requirements", [])
kwargs["hints"] = kwargs.get("hints", []) + self.tool.get("hints", [])

try:
for t in self.embedded_tool.job(joborder,
functools.partial(self.receive_output, output_callback),
Expand Down

0 comments on commit 63f5e50

Please sign in to comment.