Properly detect use of the state.orch alias and add orch jid to kwargs

Before, only when `salt-run state.orchestrate` was used would we add the
orch jid to the kwargs.
This commit is contained in:
Erik Johnson 2018-02-21 17:08:15 -06:00
parent 1fcbbd1e02
commit e0940a9fc4
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -229,7 +229,7 @@ class Runner(RunnerClient):
async_pub = self._gen_async_pub()
self.jid = async_pub['jid']
if low['fun'] == 'state.orchestrate':
if low['fun'] in ('state.orchestrate', 'state.orch'):
low['kwarg']['orchestration_jid'] = async_pub['jid']
# Run the runner!