From dc9c6032f25e9ec97f84e8b4e6e15d6a2e9d6f70 Mon Sep 17 00:00:00 2001 From: guerler Date: Sun, 8 Jan 2017 12:50:38 -0500 Subject: [PATCH] Fix tool version matching --- lib/galaxy/workflow/modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/workflow/modules.py b/lib/galaxy/workflow/modules.py index 1083011f898..3ecbc30fa57 100644 --- a/lib/galaxy/workflow/modules.py +++ b/lib/galaxy/workflow/modules.py @@ -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 = {}