mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
add retcode to scheduled jobs return data (part of #24237)
This commit is contained in:
parent
54b9641330
commit
f72a4ca42d
1 changed files with 6 additions and 1 deletions
|
@ -704,7 +704,12 @@ class Schedule(object):
|
|||
mret = ret.copy()
|
||||
mret['jid'] = 'req'
|
||||
channel = salt.transport.Channel.factory(self.opts, usage='salt_schedule')
|
||||
load = {'cmd': '_return', 'id': self.opts['id']}
|
||||
load = {
|
||||
'cmd': '_return',
|
||||
'id': self.opts['id'],
|
||||
'retcode': self.functions.pack['__context__']['retcode']
|
||||
}
|
||||
|
||||
for key, value in six.iteritems(mret):
|
||||
load[key] = value
|
||||
channel.send(load)
|
||||
|
|
Loading…
Add table
Reference in a new issue