From 4425aa1170a1acd3ed69c32ba5e3885301593524 Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Thu, 1 Nov 2012 01:11:51 -0600 Subject: [PATCH] Restructure redis returner, since it did notwork before anyway --- salt/returners/redis_return.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/salt/returners/redis_return.py b/salt/returners/redis_return.py index 73cffa2823..d9163c30a3 100644 --- a/salt/returners/redis_return.py +++ b/salt/returners/redis_return.py @@ -41,7 +41,6 @@ def returner(ret): Return data to a redis data store ''' serv = _get_serv() - serv.sadd('{0}:jobs'.format(ret['id'])) - serv.set('{0}:{1}'.format(ret['jid'], json.dumps(ret['return']))) - serv.sadd('jobs', ret['jid']) - serv.sadd(ret['jid'], ret['id']) + serv.set('{0}:{1}'.format(ret['id'], ret['jid']), json.dumps(ret)) + serv.lpush('{0}:{1}'.format(ret['id'], ret['fun']), ret['jid']) + serv.sadd('minions', ret['id'])