also linke "files" subdir

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2014-04-12 19:40:41 +02:00
parent 203708e5da
commit c818442ef2

View file

@ -33,6 +33,8 @@ import cdist
import cdist.message import cdist.message
from cdist import core from cdist import core
CONF_SUBDIRS_LINKED = [ "explorer", "files", "manifest", "type" ]:
class Local(object): class Local(object):
"""Execute commands locally. """Execute commands locally.
@ -216,14 +218,14 @@ class Local(object):
pass pass
def _create_conf_path_and_link_conf_dirs(self): def _create_conf_path_and_link_conf_dirs(self):
# Link destination directories # Create destination directories
for sub_dir in [ "explorer", "manifest", "type" ]: for sub_dir in CONF_SUBDIRS_LINKED:
self.mkdir(os.path.join(self.conf_path, sub_dir)) self.mkdir(os.path.join(self.conf_path, sub_dir))
# Iterate over all directories and link the to the output dir # Iterate over all directories and link the to the output dir
for conf_dir in self.conf_dirs: for conf_dir in self.conf_dirs:
self.log.debug("Checking conf_dir %s ..." % (conf_dir)) self.log.debug("Checking conf_dir %s ..." % (conf_dir))
for sub_dir in [ "explorer", "manifest", "type" ]: for sub_dir in CONF_SUBDIRS_LINKED:
current_dir = os.path.join(conf_dir, sub_dir) current_dir = os.path.join(conf_dir, sub_dir)
# Allow conf dirs to contain only partial content # Allow conf dirs to contain only partial content