mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +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
@ -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…
Reference in New Issue
Block a user