Skip to content

Commit

Permalink
Merge pull request #5223 from mvdbeek/fix_second_submit_host
Browse files Browse the repository at this point in the history
Allow shell plugins with different parameters to co-exist
  • Loading branch information
jmchilton committed Dec 15, 2017
2 parents 0d8520f + 86d9b64 commit ad0459d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/galaxy/jobs/runners/util/cli/__init__.py
@@ -1,5 +1,6 @@
"""
"""
import json
from glob import glob
from os import getcwd
from os.path import (
Expand Down Expand Up @@ -56,9 +57,10 @@ def get_plugins(self, shell_params, job_params):

def get_shell_plugin(self, shell_params):
shell_plugin = shell_params.get('plugin', DEFAULT_SHELL_PLUGIN)
if shell_plugin not in self.active_cli_shells:
self.active_cli_shells[shell_plugin] = self.cli_shells[shell_plugin](**shell_params)
return self.active_cli_shells[shell_plugin]
requested_shell_settings = json.dumps(shell_params, sort_keys=True)
if requested_shell_settings not in self.active_cli_shells:
self.active_cli_shells[requested_shell_settings] = self.cli_shells[shell_plugin](**shell_params)
return self.active_cli_shells[requested_shell_settings]

def get_job_interface(self, job_params):
job_plugin = job_params.get('plugin', None)
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/runners/util/cli/shell/rsh.py
Expand Up @@ -3,8 +3,8 @@

import paramiko

from galaxy.util.bunch import Bunch
from .local import LocalShell
from ....util import Bunch

log = logging.getLogger(__name__)
logging.getLogger("paramiko").setLevel(logging.WARNING) # paramiko logging is very verbose
Expand Down

0 comments on commit ad0459d

Please sign in to comment.