Attempt to fix bug introduced in 08f8850853d004bf8a456a147436a669.

Thanks to Nicola for the bug report (https://bitbucket.org/galaxy/galaxy-central/commits/08f8850853d004bf8a456a147436a669#comment-1528754).
This commit is contained in:
John Chilton
2015-01-05 10:05:46 -05:00
parent b0c25f8642
commit 793f5a9d42
+2 -2
View File
@@ -483,8 +483,8 @@ class AbstractToolBox( object, Dictifiable ):
return[ self._tools_by_id[ tool_id ] ]
return None
def has_tool( self, tool_id, exact=False ):
return self.get_tool( tool_id, exact=exact ) is not None
def has_tool( self, tool_id, tool_version=None, exact=False ):
return self.get_tool( tool_id, tool_version=tool_version, exact=exact ) is not None
def get_tool_id( self, tool_id ):
""" Take a tool id (potentially from a different Galaxy instance or that