Skip to content

Commit

Permalink
Fix bug in tool reloading API where ID not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Aug 19, 2015
1 parent 096a168 commit a1bff67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/galaxy/webapps/galaxy/api/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ def build( self, trans, id, **kwd ):

@_future_expose_api
@web.require_admin
def reload( self, trans, tool_id, **kwd ):
def reload( self, trans, id, **kwd ):
"""
GET /api/tools/{tool_id}/reload
Reload specified tool.
"""
toolbox = trans.app.toolbox
galaxy.queue_worker.send_control_task( trans, 'reload_tool', noop_self=True, kwargs={ 'tool_id': tool_id } )
message, status = trans.app.toolbox.reload_tool_by_id( tool_id )
galaxy.queue_worker.send_control_task( trans, 'reload_tool', noop_self=True, kwargs={ 'tool_id': id } )
message, status = trans.app.toolbox.reload_tool_by_id( id )
return { status: message }

@_future_expose_api_anonymous
Expand Down

0 comments on commit a1bff67

Please sign in to comment.