From 919f67184a01bde6f45d3e36e1d94ff5a9503cbf Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 6 Oct 2011 15:49:08 +0200 Subject: [PATCH] do not reference scp anymore Signed-off-by: Nico Schottelius --- lib/cdist/path.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/cdist/path.py b/lib/cdist/path.py index 721764bf..a2b47610 100644 --- a/lib/cdist/path.py +++ b/lib/cdist/path.py @@ -125,17 +125,13 @@ class Path: def transfer_dir(self, source, destination): """Transfer directory and previously delete the remote destination""" self.remove_remote_dir(destination) - cdist.exec.run_or_fail(["scp", "-qr", source, - self.remote_user + "@" + - self.target_host + ":" + - destination]) + cdist.exec.run_or_fail([os.environ['__remote_copy'], "-r", source, + self.target_host + ":" + destination]) def transfer_file(self, source, destination): """Transfer file""" - cdist.exec.run_or_fail(["scp", "-q", source, - self.remote_user + "@" + - self.target_host + ":" + - destination]) + cdist.exec.run_or_fail([os.environ['__remote_copy'], source, + self.target_host + ":" + destination]) def global_explorer_output_path(self, explorer): """Returns path of the output for a global explorer"""