Skip to content

Commit

Permalink
Refactor ToolEvaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
arash77 committed Jan 14, 2025
1 parent 1259e87 commit 8f7e0a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/galaxy/tools/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,8 @@ def set_compute_environment(self, compute_environment: ComputeEnvironment, get_s
self.execute_tool_hooks(inp_data=inp_data, out_data=out_data, incoming=incoming)

if hasattr(self.tool, "credentials"):
tool_id = self.tool.id
tool_credentials: List[CredentialsRequirement] = self.tool.credentials
user_credentials_configurator = UserCredentialsConfigurator(self.app, self.job, self.environment_variables)
user_credentials_configurator.set_environment_variables("tool", tool_id, tool_credentials)
user_credentials_configurator.set_environment_variables("tool", self.tool.id, self.tool.credentials)

def execute_tool_hooks(self, inp_data, out_data, incoming):
# Certain tools require tasks to be completed prior to job execution
Expand Down

0 comments on commit 8f7e0a9

Please sign in to comment.