Merge pull request #4203 from guerler/fix_name_export

[17.05] Check name type in legacy export section
This commit is contained in:
John Chilton
2017-06-19 14:42:56 -04:00
committed by GitHub
+2 -2
View File
@@ -611,10 +611,10 @@ class WorkflowContentsManager(UsesAnnotations):
)
step_dict['subworkflow'] = subworkflow_as_dict
# Data inputs
# Data inputs, legacy section not used anywhere within core
input_dicts = []
step_state = module.state.inputs or {}
if "name" in step_state:
if "name" in step_state and module.type != 'tool':
name = step_state.get( "name" )
input_dicts.append( { "name": name, "description": annotation_str } )
for name, val in step_state.items():