Fix log init error.

This commit is contained in:
Darko Poljak 2016-07-10 21:43:09 +02:00
parent 3b91ace4ea
commit 120b11e96b
1 changed files with 1 additions and 1 deletions

View File

@ -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)