-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Merging pillars when one is empty gives empty result #33437
Copy link
Copy link
Open
Labels
ConfirmedSalt engineer has confirmed bug/feature - often including a MCVESalt engineer has confirmed bug/feature - often including a MCVECorerelates to code central or existential to Saltrelates to code central or existential to SaltPillarbugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behaviorhelp-wantedCommunity help is needed to resolve thisCommunity help is needed to resolve thispending-community-assignmentPending community contributor assignmentPending community contributor assignmentseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
ConfirmedSalt engineer has confirmed bug/feature - often including a MCVESalt engineer has confirmed bug/feature - often including a MCVECorerelates to code central or existential to Saltrelates to code central or existential to SaltPillarbugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behaviorhelp-wantedCommunity help is needed to resolve thisCommunity help is needed to resolve thispending-community-assignmentPending community contributor assignmentPending community contributor assignmentseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around3rd level, incorrect or bad functionality, confusing and lacks a work around
Description of Issue/Question
I'm trying to merge pillar data, as suggested in #28394 (comment) . However, if the data I try to merge in happens to be empty (as a result of template rendering), the end result is completely empty, ignoring any previous data.
Setup
pillar/top.sls:
pillar/common.sls:
pillar/modules.sls:
From this, I expect a minion with the grain
roles: [test]to get the pillar{'00-definitions.conf': None, '01-cleanup.conf': None, '10-dostuff.conf': None}, while other minions should get{'00-definitions.conf': None, '01-cleanup.conf': None}.However, what actually happens is that minions without the role
testget nothing at all:Changing
pillar_source_merging_strategyfromsmarttorecursegives the same result.Versions Report