Skip to content

Commit cd41206

Browse files
committed
Merge pull request #12 from robnagler/robnagler-debug-files
log.debug files before parsing
2 parents 372a75c + 4713053 commit cd41206

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎stack.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def ext_pillar(minion_id, pillar, *args, **kwargs):
4040

4141

4242
def _process_stack_cfg(cfg, stack, minion_id, pillar):
43+
log.debug('Config: {0}'.format(cfg))
4344
basedir, filename = os.path.split(cfg)
4445
jenv = Environment(loader=FileSystemLoader(basedir))
4546
jenv.globals.update({
@@ -51,6 +52,7 @@ def _process_stack_cfg(cfg, stack, minion_id, pillar):
5152
})
5253
for path in _parse_stack_cfg(jenv.get_template(filename).render(stack=stack)):
5354
try:
55+
log.debug('YAML: basedir={0}, path={1}'.format(basedir, path))
5456
obj = yaml.safe_load(jenv.get_template(path).render(stack=stack))
5557
if not isinstance(obj, dict):
5658
log.info('Ignoring pillar stack template "{0}": Can\'t parse '

0 commit comments

Comments
 (0)