mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Add returners to multi returns
This commit is contained in:
parent
8a8c4c99b5
commit
cdd1ea8d82
@ -297,7 +297,14 @@ class Minion(object):
|
||||
+ ' exception: ' + str(exc))
|
||||
ret['return'][data['fun'][ind]] = exc
|
||||
ret['jid'] = data['jid']
|
||||
self._return_pub(ret)
|
||||
if data['ret']:
|
||||
try:
|
||||
self.returners[data['ret']](ret)
|
||||
except Exception as exc:
|
||||
self.opts['logger'].error('The return failed for job'\
|
||||
+ data['jid'] + ' ' + exc)
|
||||
else:
|
||||
self._return_pub(ret)
|
||||
|
||||
def _return_pub(self, ret):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user