mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix for pillar setting 'environment' key in __gen_opts()
7a6e402
added ``environment`` as a key in the master opts. This had the
unfortunate side effect of breaking the dynamic pillar feature in
git_pillar, which relies on pillar setting this opts key to the value
from the minion opts.
This commit is contained in:
parent
8dea695c7c
commit
433737d2dc
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ class Pillar(object):
|
|||
opts['grains'] = {}
|
||||
else:
|
||||
opts['grains'] = grains
|
||||
if 'environment' not in opts:
|
||||
if not opts.get('environment'):
|
||||
opts['environment'] = saltenv
|
||||
opts['id'] = self.minion_id
|
||||
if 'pillarenv' not in opts:
|
||||
|
|
Loading…
Add table
Reference in a new issue