mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +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
@ -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