Properly merge pillar data obtained from multiple nodegroups for cases

where the minion belongs to more than one

Fixes #43788
This commit is contained in:
3add3287 2017-09-28 09:12:24 +02:00
parent e4be436ca1
commit 19acf9b149

View file

@ -343,14 +343,15 @@ def ext_pillar(minion_id,
if minion_id in match:
ngroup_dir = os.path.join(
nodegroups_dir, str(nodegroup))
ngroup_pillar.update(
ngroup_pillar = salt.utils.dictupdate.merge(ngroup_pillar,
_construct_pillar(ngroup_dir,
follow_dir_links,
keep_newline,
render_default,
renderer_blacklist,
renderer_whitelist,
template)
template),
strategy='recurse'
)
else:
if debug is True: