mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #38254 from terminalmage/check-pillarenv
Also check if pillarenv is in opts
This commit is contained in:
commit
3c718ed35e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue