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:
Mike Place 2016-06-13 08:37:46 -07:00 committed by GitHub
commit 68d261fe5b

View file

@ -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):