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:
Mike Place 2016-07-19 06:39:53 -06:00 committed by GitHub
commit 58021035a9

View File

@ -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`