Merge pull request #30056 from DSRCompany/bugs/30044_redis_return

Skip non-existing jobs in redis return.
This commit is contained in:
Mike Place 2015-12-29 09:24:28 -07:00
commit ea0c7dc3fc

View File

@ -173,6 +173,8 @@ def get_jids():
serv = _get_serv(ret=None)
ret = {}
for s in serv.mget(serv.smembers('jids')):
if s is None:
continue
load = json.loads(s)
jid = load['jid']
ret[jid] = salt.utils.jid.format_jid_instance(jid, load)