Merge pull request #44483 from terminalmage/issue44034

salt-call: account for instances where __pillar__ is empty
This commit is contained in:
Mike Place 2017-11-13 10:30:35 -07:00 committed by GitHub
commit 2c89050a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -662,7 +662,7 @@ class State(object):
.format(', '.join(VALID_PILLAR_ENC))
)
self._pillar_enc = pillar_enc
if initial_pillar is not None:
if initial_pillar:
self.opts['pillar'] = initial_pillar
if self._pillar_override:
self.opts['pillar'] = salt.utils.dictupdate.merge(