mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
salt.pillar.file_tree provide better debug info
This commit is contained in:
parent
bb1cdc451e
commit
3c6a5bf967
1 changed files with 8 additions and 3 deletions
|
@ -354,8 +354,8 @@ def ext_pillar(minion_id,
|
|||
else:
|
||||
if debug is True:
|
||||
log.debug(
|
||||
'file_tree: no nodegroups found in file tree directory '
|
||||
'ext_pillar_dirs, skipping...'
|
||||
'file_tree: no nodegroups found in file tree directory %s, skipping...',
|
||||
ext_pillar_dirs
|
||||
)
|
||||
else:
|
||||
if debug is True:
|
||||
|
@ -363,7 +363,12 @@ def ext_pillar(minion_id,
|
|||
|
||||
host_dir = os.path.join(root_dir, 'hosts', minion_id)
|
||||
if not os.path.exists(host_dir):
|
||||
# No data for host with this ID
|
||||
if debug is True:
|
||||
log.debug(
|
||||
'file_tree: no pillar data for minion %s found in file tree directory %s',
|
||||
minion_id,
|
||||
host_dir
|
||||
)
|
||||
return ngroup_pillar
|
||||
|
||||
if not os.path.isdir(host_dir):
|
||||
|
|
Loading…
Add table
Reference in a new issue