Merge pull request #38254 from terminalmage/check-pillarenv

Also check if pillarenv is in opts
This commit is contained in:
Mike Place 2016-12-15 02:10:24 -07:00 committed by GitHub
commit 3c718ed35e

View File

@ -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']