mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Merge pull request #38254 from terminalmage/check-pillarenv
Also check if pillarenv is in opts
This commit is contained in:
commit
3c718ed35e
@ -351,7 +351,7 @@ class Pillar(object):
|
||||
if not opts.get('environment'):
|
||||
opts['environment'] = saltenv
|
||||
opts['id'] = self.minion_id
|
||||
if 'pillarenv' not in opts:
|
||||
if not opts.get('pillarenv'):
|
||||
opts['pillarenv'] = pillarenv
|
||||
if opts['state_top'].startswith('salt://'):
|
||||
opts['state_top'] = opts['state_top']
|
||||
|
Loading…
Reference in New Issue
Block a user