Fixing basic messup (#9947)

This commit is contained in:
Ian Rodney
2020-08-05 22:09:21 -07:00
committed by GitHub
parent 51bad84423
commit 45597e3158
+2 -4
View File
@@ -481,9 +481,8 @@ class DockerCommandRunner(SSHCommandRunner):
ssh_options_override=ssh_options_override)
def run_rsync_up(self, source, target):
protected_path = ""
protected_path = target
if target.find("/root") == 0:
protected_path = target
target = target.replace("/root", "/tmp/root")
self.ssh_command_runner.run(
f"mkdir -p {os.path.dirname(target)}", run_env="host")
@@ -494,9 +493,8 @@ class DockerCommandRunner(SSHCommandRunner):
self._docker_expand_user(protected_path)))
def run_rsync_down(self, source, target):
protected_path = ""
protected_path = source
if source.find("/root") == 0:
protected_path = source
source = source.replace("/root", "/tmp/root")
self.ssh_command_runner.run(
f"mkdir -p {os.path.dirname(source)}", run_env="host")