mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #33960 from mecarus/2016.3
Fix mongo get_load to return full mongo record instead of non-existant 'load' key
This commit is contained in:
commit
68d261fe5b
1 changed files with 1 additions and 2 deletions
|
@ -223,8 +223,7 @@ def get_load(jid):
|
|||
Return the load associated with a given job id
|
||||
'''
|
||||
conn, mdb = _get_conn(ret=None)
|
||||
ret = mdb.jobs.find_one({'jid': jid}, {'_id': 0})
|
||||
return ret['load']
|
||||
return mdb.jobs.find_one({'jid': jid}, {'_id': 0})
|
||||
|
||||
|
||||
def get_jid(jid):
|
||||
|
|
Loading…
Add table
Reference in a new issue