mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #30056 from DSRCompany/bugs/30044_redis_return
Skip non-existing jobs in redis return.
This commit is contained in:
commit
ea0c7dc3fc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user