Fix regression in state orchestration

This falls back to using the effective saltenv when no saltenv has been
explicitly passed.
This commit is contained in:
Erik Johnson 2017-05-25 10:51:09 -05:00
parent 561a416cf3
commit 16eae64cca

View File

@ -230,7 +230,7 @@ def state(
if pillar: if pillar:
cmd_kw['kwarg']['pillar'] = pillar cmd_kw['kwarg']['pillar'] = pillar
cmd_kw['kwarg']['saltenv'] = saltenv cmd_kw['kwarg']['saltenv'] = saltenv if saltenv is not None else __env__
cmd_kw['kwarg']['queue'] = queue cmd_kw['kwarg']['queue'] = queue
if isinstance(concurrent, bool): if isinstance(concurrent, bool):