Merge pull request #43168 from rallytime/bp-43041

Back-port #43041 to 2017.7
This commit is contained in:
garethgreenaway 2017-08-24 12:07:22 -07:00 committed by GitHub
commit 034c325a09

View File

@ -561,7 +561,7 @@ def ext_pillar(minion_id, repo, pillar_dirs):
)
for pillar_dir, env in six.iteritems(pillar.pillar_dirs):
# If pillarenv is set, only grab pillars with that match pillarenv
if opts['pillarenv'] and env != opts['pillarenv']:
if opts['pillarenv'] and env != opts['pillarenv'] and env != '__env__':
log.debug(
'env \'%s\' for pillar dir \'%s\' does not match '
'pillarenv \'%s\', skipping',