self.projects['hiera']['name'] = cfg['name'].strip()
if 'parent_dir' in cfg and cfg['parent_dir']:
self.projects['hiera']['parent_dir'] = cfg['parent_dir']
+ if 'workdir' in cfg and cfg['workdir']:
+ self.projects[project_key]['workdir'] = cfg['workdir']
+ if 'branch' in cfg and cfg['branch'].strip():
+ self.projects[project_key]['branch'] = cfg['branch'].strip()
continue
if project_key not in self.projects:
self.projects[project_key] = {}
pname = 'hiera'
parent_dir = '/www/data/puppet-hiera'
+ if self.verbose > 2:
+ LOG.debug("Got config structure for hiera:\n{}".format(pp(cfg)))
if 'parent_dir' in cfg and cfg['parent_dir']:
parent_dir = cfg['parent_dir']
workdir = pname