From 120b11e96b36047990c79a65b396fe074fd301eb Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Sun, 10 Jul 2016 21:43:09 +0200 Subject: [PATCH] Fix log init error. --- cdist/exec/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/exec/local.py b/cdist/exec/local.py index 6d7ccc57..e1d7af1c 100644 --- a/cdist/exec/local.py +++ b/cdist/exec/local.py @@ -54,6 +54,7 @@ class Local(object): add_conf_dirs=None): self.target_host = target_host + self._init_log() # FIXME: stopped: create base that does not require moving later if base_path: @@ -69,7 +70,6 @@ class Local(object): "\"{}\"".format(self.target_host, self.hostdir)) self.base_path = os.path.join(base_path_parent, self.hostdir) - self._init_log() self._init_permissions() self.mkdir(self.base_path)