Unverified Commit 9efb7498 authored by mvdbeek's avatar mvdbeek
Browse files

Ensure no tool_id is returned for subworkflow steps

parent 7e7dccc9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1327,8 +1327,7 @@ class WorkflowContentsManager(UsesAnnotations):
                "id": step.order_index,
                "type": module.type,
                "content_id": content_id,
                "tool_id": content_id,  # For workflows exported to older Galaxies,
                # eliminate after a few years...
                "tool_id": None,
                "tool_version": module.get_version() if allow_upgrade else step.tool_version,
                "name": module.get_name(),
                "tool_state": json.dumps(tool_state),
@@ -1337,6 +1336,8 @@ class WorkflowContentsManager(UsesAnnotations):
                "label": step.label or None,
                "annotation": annotation_str,
            }
            if step.type == "tool":
                step_dict["tool_id"] = step.tool_id
            # Add tool shed repository information and post-job actions to step dict.
            if module.type == "tool":
                if module.tool and module.tool.tool_shed: