Fix tool version matching

This commit is contained in:
guerler
2017-01-08 13:13:57 -05:00
parent 5f3ccc91e3
commit dc9c6032f2
+2 -2
View File
@@ -566,8 +566,8 @@ class ToolModule( WorkflowModule ):
self.tool_id = tool_id
self.tool_version = tool_version
self.tool = trans.app.toolbox.get_tool( tool_id, tool_version=tool_version, exact=exact_tools )
if tool_version and exact_tools and str(tool.version) != str(tool_version):
log.debug("Exact tool specified during workflow module creation for [%s] but couldn't find correct version [%s]" % (tool_id, tool_version))
if self.tool and tool_version and exact_tools and str( self.tool.version ) != str( tool_version ):
log.debug( "Exact tool specified during workflow module creation for [%s] but couldn't find correct version [%s]." % (tool_id, tool_version) )
self.tool = None
self.post_job_actions = {}
self.runtime_post_job_actions = {}