mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add return data to the wheel return seq
This commit is contained in:
parent
a9bcf2ca67
commit
8f4915a5d3
@ -2197,7 +2197,8 @@ class ClearFuncs(object):
|
||||
data['return'] = ret
|
||||
data['success'] = True
|
||||
self.event.fire_event(data, tagify([jid, 'ret'], 'wheel'))
|
||||
return {'tag': tag}
|
||||
return {'tag': tag,
|
||||
'data': data}
|
||||
except Exception as exc:
|
||||
log.error(exc)
|
||||
log.error('Exception occurred while '
|
||||
@ -2209,7 +2210,8 @@ class ClearFuncs(object):
|
||||
)
|
||||
data['success'] = False
|
||||
self.event.fire_event(data, tagify([jid, 'ret'], 'wheel'))
|
||||
return {'tag': tag}
|
||||
return {'tag': tag,
|
||||
'data': data}
|
||||
|
||||
if 'eauth' not in clear_load:
|
||||
msg = ('Authentication failure of type "eauth" occurred for '
|
||||
@ -2265,7 +2267,8 @@ class ClearFuncs(object):
|
||||
data['return'] = ret
|
||||
data['success'] = True
|
||||
self.event.fire_event(data, tagify([jid, 'ret'], 'wheel'))
|
||||
return {'tag': tag}
|
||||
return {'tag': tag,
|
||||
'data': data}
|
||||
except Exception as exc:
|
||||
log.error('Exception occurred while '
|
||||
'introspecting {0}: {1}'.format(fun, exc))
|
||||
@ -2275,7 +2278,8 @@ class ClearFuncs(object):
|
||||
exc,
|
||||
)
|
||||
self.event.fire_event(data, tagify([jid, 'ret'], 'wheel'))
|
||||
return {'tag': tag}
|
||||
return {'tag': tag,
|
||||
'data': data}
|
||||
|
||||
except Exception as exc:
|
||||
log.error(
|
||||
|
Loading…
Reference in New Issue
Block a user