From fc988a5c228e0f778aa04840b18c8f2ea8bdddd7 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Tue, 17 Sep 2013 23:48:45 +0200 Subject: [PATCH] oh my, never mind Signed-off-by: Steven Armstrong --- cdist/exec/remote.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cdist/exec/remote.py b/cdist/exec/remote.py index 3ffda12f..7c807092 100644 --- a/cdist/exec/remote.py +++ b/cdist/exec/remote.py @@ -48,12 +48,15 @@ class Remote(object): target_host, remote_exec, remote_copy, - base_path="/var/lib/cdist"): + base_path=None): self.target_host = target_host self._exec = remote_exec self._copy = remote_copy - self.base_path = base_path + if base_path: + self.base_path = base_path + else: + self.base_path = "/var/lib/cdist" self.conf_path = os.path.join(self.base_path, "conf") self.object_path = os.path.join(self.base_path, "object")