From dc9092dbef79ef1b4afbd5989e61ccb912d6f6be Mon Sep 17 00:00:00 2001
From: Steven Armstrong <steven@icarus.ethz.ch>
Date: Tue, 11 Oct 2011 16:56:59 +0200
Subject: [PATCH] --os.environ

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
---
 lib/cdist/exec.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/cdist/exec.py b/lib/cdist/exec.py
index 13cec499..a2282347 100644
--- a/lib/cdist/exec.py
+++ b/lib/cdist/exec.py
@@ -20,7 +20,6 @@
 #
 
 import logging
-import os
 import subprocess
 
 import cdist
@@ -44,7 +43,7 @@ class Wrapper(object):
     def transfer_path(self, source, destination):
         """Transfer directory and previously delete the remote destination"""
         self.remove_remote_path(destination)
-        self.run_or_fail(os.environ['__remote_copy'].split() +
+        self.run_or_fail(self.remote_copy.split() +
             ["-r", source, self.target_host + ":" + destination])
 
     def shell_run_or_debug_fail(self, script, *args, remote=False, **kargs):