mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #43168 from rallytime/bp-43041
Back-port #43041 to 2017.7
This commit is contained in:
commit
034c325a09
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user