Skip to content

Commit 7b9b06c

Browse files
committed
Now parse string works on clusters that require shell initialization
1 parent 97634cf commit 7b9b06c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Modules/Cluster.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,9 +1206,11 @@ def parse_string(self, string):
12061206
if self.use_active_shell:
12071207
cmd = "{ssh} {host} -t '{shell} --login -c \"echo {string}\"'".format(ssh = self.sshcmd,
12081208
host = self.hostname,
1209-
string = string,
1209+
string = string.replace("$", "\$"),
12101210
shell = self.terminal)
12111211
#print cmd
1212+
1213+
#print(cmd)
12121214

12131215
status, output = self.ExecuteCMD(cmd, return_output = True)
12141216
#

0 commit comments

Comments
 (0)