need a way to set remote.base_path from the command line

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2013-09-17 23:33:30 +02:00
commit 2f70a0d70e
3 changed files with 6 additions and 6 deletions

View file

@ -48,15 +48,12 @@ class Remote(object):
target_host,
remote_exec,
remote_copy,
base_path=None):
base_path="/var/lib/cdist"):
self.target_host = target_host
self._exec = remote_exec
self._copy = remote_copy
if base_path:
self.base_path = base_path
else:
self.base_path = "/var/lib/cdist"
self.base_path = base_path
self.conf_path = os.path.join(self.base_path, "conf")
self.object_path = os.path.join(self.base_path, "object")