From 18f08d893cdffc498725358dc8f9ed6948156263 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 21 Oct 2011 15:59:39 +0200 Subject: [PATCH] export defaults for __remote_{exec,copy} Signed-off-by: Steven Armstrong --- lib/cdist/context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cdist/context.py b/lib/cdist/context.py index 77a6028f..ab8677a7 100644 --- a/lib/cdist/context.py +++ b/lib/cdist/context.py @@ -72,8 +72,8 @@ class Context(object): # Remote self.remote_base_path = os.environ.get('__cdist_remote_out_dir', "/var/lib/cdist") - self.remote_exec = os.environ.get('__remote_exec', "ssh -o User=root -q") - self.remote_copy = os.environ.get('__remote_copy', "scp -o User=root -q") + self.remote_exec = os.environ.setdefault('__remote_exec', "ssh -o User=root -q") + self.remote_copy = os.environ.setdefault('__remote_copy', "scp -o User=root -q") self.remote = remote.Remote(self.target_host, self.remote_base_path, self.remote_exec, self.remote_copy)