Bugfix for bugfix d3b1f6b.

d3b1f6b fix the GUI (in an obsecure use) but broke fairly typical uses of the API.
This commit is contained in:
John Chilton
2015-02-05 13:33:59 -05:00
parent cf1632811e
commit d8875d27e7
+3 -1
View File
@@ -324,7 +324,9 @@ class InputModule( SimpleWorkflowModule ):
# so do that now so dependent steps can be recalculated. In the future
# everything should come in from the API and this can be eliminated.
if not invocation.has_input_for_step( step.id ):
invocation.add_input( step_outputs.values()[ 0 ], step.id )
content = step_outputs.values()[ 0 ]
if content:
invocation.add_input( content, step.id )
progress.set_outputs_for_input( step, step_outputs )
return job