From 2df62debecb044bf0080499eb6b76b9d35b1e6e1 2014-03-24 16:44:59 From: MinRK Date: 2014-03-24 16:44:59 Subject: [PATCH] fix typo in ssh launcher send_file would result in `ssh HOST mkdir -p HOST:~/.ipython/...` --- diff --git a/IPython/parallel/apps/launcher.py b/IPython/parallel/apps/launcher.py index 67a53b5..10e5a46 100644 --- a/IPython/parallel/apps/launcher.py +++ b/IPython/parallel/apps/launcher.py @@ -593,7 +593,7 @@ class SSHLauncher(LocalProcessLauncher): def _send_file(self, local, remote): """send a single file""" - remote = "%s:%s" % (self.location, remote) + full_remote = "%s:%s" % (self.location, remote) for i in range(10): if not os.path.exists(local): self.log.debug("waiting for %s" % local) @@ -605,8 +605,8 @@ class SSHLauncher(LocalProcessLauncher): check_output(self.ssh_cmd + self.ssh_args + \ [self.location, 'mkdir', '-p', '--', remote_dir] ) - self.log.info("sending %s to %s", local, remote) - check_output(self.scp_cmd + [local, remote]) + self.log.info("sending %s to %s", local, full_remote) + check_output(self.scp_cmd + [local, full_remote]) def send_files(self): """send our files (called before start)"""