Skip to content

Commit

Permalink
Merge branch 'release_15.03' into release_15.05
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Aug 19, 2015
2 parents f01300d + 01278aa commit 483ea9e
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 @@ -107,14 +107,14 @@ def build( self, trans, id, **kwd ):

@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 }

@expose_api
Expand Down

0 comments on commit 483ea9e

Please sign in to comment.