mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Update minion to return extra key data to master
This commit is contained in:
parent
2156fbea29
commit
68b5aacf58
@ -548,10 +548,12 @@ class Minion(object):
|
|||||||
continue
|
continue
|
||||||
load['return'][key] = value
|
load['return'][key] = value
|
||||||
else:
|
else:
|
||||||
load = {'return': ret['return'],
|
load = {'cmd': ret_cmd,
|
||||||
'cmd': ret_cmd,
|
|
||||||
'jid': ret['jid'],
|
|
||||||
'id': self.opts['id']}
|
'id': self.opts['id']}
|
||||||
|
for key, value in ret.items():
|
||||||
|
if key == 'fun':
|
||||||
|
continue
|
||||||
|
load[key] = value
|
||||||
try:
|
try:
|
||||||
if hasattr(self.functions[ret['fun']], '__outputter__'):
|
if hasattr(self.functions[ret['fun']], '__outputter__'):
|
||||||
oput = self.functions[ret['fun']].__outputter__
|
oput = self.functions[ret['fun']].__outputter__
|
||||||
|
Loading…
Reference in New Issue
Block a user