diff --git a/lib/galaxy/managers/tools.py b/lib/galaxy/managers/tools.py index 639fd058347b..c6dbe471dc84 100644 --- a/lib/galaxy/managers/tools.py +++ b/lib/galaxy/managers/tools.py @@ -110,6 +110,8 @@ def create_tool(self, trans, tool_payload, allow_load=True): tool_path=tool_path, tool_directory=tool_directory, uuid=uuid, + active=tool_payload.get("active"), + hidden=tool_payload.get("hidden"), value=representation, ) self.app.toolbox.load_dynamic_tool(dynamic_tool) diff --git a/lib/galaxy/webapps/galaxy/api/dynamic_tools.py b/lib/galaxy/webapps/galaxy/api/dynamic_tools.py index 541b19901041..2cdf2bd141a1 100644 --- a/lib/galaxy/webapps/galaxy/api/dynamic_tools.py +++ b/lib/galaxy/webapps/galaxy/api/dynamic_tools.py @@ -40,7 +40,7 @@ def show(self, trans, id, **kwd): """ GET /api/dynamic_tools/{encoded_dynamic_tool_id|tool_uuid} """ - self._get_dynamic_tool(trans, id).to_dict() + return self._get_dynamic_tool(trans, id).to_dict() @web.require_admin @expose_api