Merge pull request #43817 from The-Loeki/orch-pillarenv

Orchestrate runner forces pillarenv and saltenv to None
This commit is contained in:
Nicole Thomas 2017-11-06 23:00:15 -07:00 committed by GitHub
commit 62c4addef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,6 +71,12 @@ def orchestrate(mods,
)
__opts__['file_client'] = 'local'
minion = salt.minion.MasterMinion(__opts__)
if pillarenv is None and 'pillarenv' in __opts__:
pillarenv = __opts__['pillarenv']
if saltenv is None and 'saltenv' in __opts__:
saltenv = __opts__['saltenv']
running = minion.functions['state.sls'](
mods,
test,