From cd8695d3ebcd356c4d23ff0b056b6e87a9ea4b5c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 19 Aug 2013 08:48:41 +0200 Subject: [PATCH] move create_files_dirs more to up - it is similar to init() Signed-off-by: Nico Schottelius --- cdist/exec/local.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cdist/exec/local.py b/cdist/exec/local.py index c7a1c28c..b3478cf9 100644 --- a/cdist/exec/local.py +++ b/cdist/exec/local.py @@ -125,6 +125,12 @@ class Local(object): self.mkdir(self.global_explorer_out_path) self.mkdir(self.bin_path) + def create_files_dirs(self): + self._init_directories() + self._create_conf_path_and_link_conf_dirs() + self._link_types_for_emulator() + + def _init_cache_dir(self, cache_dir): if cache_dir: self.cache_path = cache_dir @@ -177,11 +183,6 @@ class Local(object): return self.run(command, env, return_output) - def create_files_dirs(self): - self._init_directories() - self._create_conf_path_and_link_conf_dirs() - self._link_types_for_emulator() - def save_cache(self): destination = os.path.join(self.cache_path, self.target_host) self.log.debug("Saving " + self.out_path + " to " + destination)