Skip to content

Commit 9724135

Browse files
committed
solving the key error
1 parent 8ca46a5 commit 9724135

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Modules/Cluster.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,13 +583,15 @@ def submit(self, script_location):
583583
It is what returned from self.ExecuteCMD(cmd, False)
584584
"""
585585

586-
cmd = "{ssh} {host} '{submit_cmd} {script}'"
586+
cmd = "{ssh} {host} '{submit_cmd} {script}'".format(ssh = self.sshcmd, host = self.hostname,
587+
submit_cmd = self.submit_name, script = script_location)
587588
if self.use_active_shell:
588-
cmd = "{ssh} {host} -t '{shell} --login -c \"{submit_cmd} {script}\"'".format(shell = self.terminal)
589+
cmd = "{ssh} {host} -t '{shell} --login -c \"{submit_cmd} {script}\"'".format(ssh = self.sshcmd,
590+
host = self.hostname,
591+
submit_cmd = self.submit_name, script = script_location,
592+
shell = self.terminal)
589593

590594

591-
cmd = cmd.format(ssh = self.sshcmd, host = self.hostname,
592-
submit_cmd = self.submit_name, script = script_location)
593595

594596
#cmd = self.sshcmd + " %s '%s %s/%s.sh'" % (self.hostname, self.submit_command,
595597
# self.workdir, label+ "_" + str(indices[0]))

0 commit comments

Comments
 (0)