mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #34773 from randomed/mysql-returner-startup/2015.8
Bugfix: Startup states on minions are not being written to mysql returner
This commit is contained in:
commit
58021035a9
@ -246,6 +246,11 @@ def returner(ret):
|
||||
'''
|
||||
Return data to a mysql server
|
||||
'''
|
||||
# if a minion is returning a standalone job, get a jobid
|
||||
if ret['jid'] == 'req':
|
||||
ret['jid'] = prep_jid(nocache=ret.get('nocache', False))
|
||||
save_load(ret['jid'], ret)
|
||||
|
||||
try:
|
||||
with _get_serv(ret, commit=True) as cur:
|
||||
sql = '''INSERT INTO `salt_returns`
|
||||
|
Loading…
Reference in New Issue
Block a user