forked from ungleich-public/cdist
also linke "files" subdir
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
203708e5da
commit
c818442ef2
1 changed files with 5 additions and 3 deletions
|
@ -33,6 +33,8 @@ import cdist
|
|||
import cdist.message
|
||||
from cdist import core
|
||||
|
||||
CONF_SUBDIRS_LINKED = [ "explorer", "files", "manifest", "type" ]:
|
||||
|
||||
class Local(object):
|
||||
"""Execute commands locally.
|
||||
|
||||
|
@ -216,14 +218,14 @@ class Local(object):
|
|||
pass
|
||||
|
||||
def _create_conf_path_and_link_conf_dirs(self):
|
||||
# Link destination directories
|
||||
for sub_dir in [ "explorer", "manifest", "type" ]:
|
||||
# Create destination directories
|
||||
for sub_dir in CONF_SUBDIRS_LINKED:
|
||||
self.mkdir(os.path.join(self.conf_path, sub_dir))
|
||||
|
||||
# Iterate over all directories and link the to the output dir
|
||||
for conf_dir in self.conf_dirs:
|
||||
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)
|
||||
|
||||
# Allow conf dirs to contain only partial content
|
||||
|
|
Loading…
Reference in a new issue