mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Also check if pillarenv is in opts
This will future-proof this code against a problem similar to the one fixed by https://github.com/saltstack/salt/pull/37721
This commit is contained in:
parent
004e46afe7
commit
fa9ad311c6
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