mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2015.8' into '2016.3'
No conflicts.
This commit is contained in:
commit
3e032dc397
3 changed files with 8 additions and 1 deletions
|
@ -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`
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue