Skip to content

Commit

Permalink
Fix saltstack#38595 - Unexpected error log from redis retuner in mast…
Browse files Browse the repository at this point in the history
…er's log
  • Loading branch information
yue9944882 committed Jan 6, 2017
1 parent a27fdb4 commit ef193b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/returners/redis_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ def clean_old_jobs():
load_key = ret_key.replace('ret:', 'load:', 1)
if load_key not in living_jids:
to_remove.append(ret_key)
serv.delete(*to_remove)
if(len(to_remove) != 0):
serv.delete(*to_remove)


def prep_jid(nocache=False, passed_jid=None): # pylint: disable=unused-argument
Expand Down

0 comments on commit ef193b2

Please sign in to comment.