Pass orchestration jid to orchestration jobs

This commit is contained in:
Erik Johnson 2016-07-28 23:19:50 -05:00
parent f93322c19a
commit 1ffec6aef4

View File

@ -20,7 +20,8 @@ def orchestrate(mods,
test=None,
exclude=None,
pillar=None,
pillarenv=None):
pillarenv=None,
**kwargs):
'''
.. versionadded:: 0.17.0
@ -60,7 +61,8 @@ def orchestrate(mods,
test,
exclude,
pillar=pillar,
pillarenv=pillarenv)
pillarenv=pillarenv,
orchestration_jid=kwargs.get('__pub_orchestration_jid'))
ret = {'data': {minion.opts['id']: running}, 'outputter': 'highstate'}
res = salt.utils.check_state_result(ret['data'])
if res: