From d622133a4935662bc73a9d49b5beac7d207749ed Mon Sep 17 00:00:00 2001 From: rforkosh Date: Sun, 12 Jun 2016 18:01:22 -0500 Subject: [PATCH] The jid load comes in directly, not as 'load' key. Should return the mongo record directly without accessing keys --- salt/returners/mongo_future_return.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/salt/returners/mongo_future_return.py b/salt/returners/mongo_future_return.py index 1f26b1d437..2f69029d08 100644 --- a/salt/returners/mongo_future_return.py +++ b/salt/returners/mongo_future_return.py @@ -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):