mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Return dict from get_jids() in redis returner
This commit is contained in:
parent
77a3a1470d
commit
cdcf55efad
@ -171,7 +171,12 @@ def get_jids():
|
||||
Return a list of all job ids
|
||||
'''
|
||||
serv = _get_serv(ret=None)
|
||||
return list(serv.smembers('jids'))
|
||||
ret = {}
|
||||
for s in serv.mget(serv.smembers('jids')):
|
||||
load = json.loads(s)
|
||||
jid = load['jid']
|
||||
ret[jid] = salt.utils.jid.format_jid_instance(jid, load)
|
||||
return ret
|
||||
|
||||
|
||||
def get_minions():
|
||||
|
Loading…
Reference in New Issue
Block a user