mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
The jid load comes in directly, not as 'load' key. Should return the mongo record directly without accessing keys
This commit is contained in:
parent
cf81afab47
commit
d622133a49
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