Merge branch '2015.8' into '2016.3'

No conflicts.
This commit is contained in:
rallytime 2016-07-19 09:30:45 -06:00
commit 3e032dc397
3 changed files with 8 additions and 1 deletions

View file

@ -255,6 +255,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`

View file

@ -58,7 +58,8 @@ def update(dest, upd, recursive_update=True, merge_lists=False):
return dest
else:
try:
dest.update(upd)
for k in upd.keys():
dest[k] = upd[k]
except AttributeError:
# this mapping is not a dict
for k in upd:

View file

@ -324,6 +324,7 @@ class TestMinionSaltAPIHandler(SaltnadoTestCase):
application.event_listener = saltnado.EventListener({}, self.opts)
return application
@skipIf(True, 'issue #34753')
def test_get_no_mid(self):
response = self.fetch('/minions',
method='GET',