mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Caller needs to pass the fun in the return dict
This commit is contained in:
parent
498d674409
commit
20577b3705
@ -74,11 +74,13 @@ class Caller(object):
|
||||
if self.opts.get('return', ''):
|
||||
ret['id'] = self.opts['id']
|
||||
ret['jid'] = '{0:%Y%m%d%H%M%S%f}'.format(datetime.datetime.now())
|
||||
ret['fun'] = fun
|
||||
for returner in self.opts['return'].split(','):
|
||||
try:
|
||||
self.minion.returners['{0}.returner'.format(returner)](ret)
|
||||
except Exception as exc:
|
||||
pass
|
||||
|
||||
return ret
|
||||
|
||||
def print_docs(self):
|
||||
|
Loading…
Reference in New Issue
Block a user