Skip to content

Commit

Permalink
Adjust export for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Feb 1, 2017
1 parent 417d119 commit ee6063e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/galaxy/managers/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,10 @@ def _workflow_to_dict_export( self, trans, stored=None, workflow=None ):
annotation_str = step_annotation.annotation
content_id = module.get_content_id()
# Export differences for backward compatibility
if module.type != 'tool':
tool_state = json.dumps( module.state.inputs )
else:
if module.type == 'tool':
tool_state = module.get_state()
else:
tool_state = module.state.inputs
# Step info
step_dict = {
'id': step.order_index,
Expand All @@ -576,7 +576,7 @@ def _workflow_to_dict_export( self, trans, stored=None, workflow=None ):
# eliminate after a few years...
'tool_version': step.tool_version,
'name': module.get_name(),
'tool_state': tool_state,
'tool_state': json.dumps( tool_state ),
'errors': module.get_errors(),
'uuid': str(step.uuid),
'label': step.label or None,
Expand Down

0 comments on commit ee6063e

Please sign in to comment.