From bd7b2b5fa0fe660afb34d59e9752ea20fd814215 Mon Sep 17 00:00:00 2001 From: George London Date: Fri, 2 Jan 2015 18:37:44 -0800 Subject: [PATCH] specifies the shell to execute a subprocess call because i had changed the sgeadmin default shell to zsh which was returning a 1 code when it failed to find .json files in while globiing for old profiles to remove. no reason to just not use bash for these commands to behavior is predictable --- starcluster/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starcluster/node.py b/starcluster/node.py index 39d70a207..29d70a20f 100644 --- a/starcluster/node.py +++ b/starcluster/node.py @@ -1107,7 +1107,7 @@ def shell(self, user=None, forward_x11=False, forward_agent=False, command = "'source /etc/profile && %s'" % command ssh_cmd = ' '.join([ssh_cmd, command]) log.debug("ssh_cmd: %s" % ssh_cmd) - return subprocess.call(ssh_cmd, shell=True) + return subprocess.call(ssh_cmd, shell=True, executable='/bin/bash') else: log.debug("Using Pure-Python SSH client") if forward_x11: