make the jid in the ssh minion payload the same as the one for the tag

This commit is contained in:
Daniel Wallace 2017-11-17 13:44:28 -07:00
parent d3a556a6f3
commit 7e9f673675
No known key found for this signature in database
GPG Key ID: 5FA5E5544F010D48

View File

@ -663,6 +663,7 @@ class SSH(object):
self.cache_job(jid, host, ret[host], fun)
if self.event:
_, data = next(six.iteritems(ret))
data['jid'] = jid # make the jid in the payload the same as the jid in the tag
self.event.fire_event(
data,
salt.utils.event.tagify(
@ -773,6 +774,7 @@ class SSH(object):
self.opts)
if self.event:
_, data = next(six.iteritems(ret))
data['jid'] = jid # make the jid in the payload the same as the jid in the tag
self.event.fire_event(
data,
salt.utils.event.tagify(