From 66ed397360bcf2fed7eecf4d18ee418809f6dcdb Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 28 Aug 2015 11:47:06 -0400 Subject: [PATCH] Fix redis fact_caching_timeout=0 bug Fixes #12018 --- lib/ansible/plugins/cache/redis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/cache/redis.py b/lib/ansible/plugins/cache/redis.py index 99ecbffcb4..d31dcad758 100644 --- a/lib/ansible/plugins/cache/redis.py +++ b/lib/ansible/plugins/cache/redis.py @@ -75,7 +75,7 @@ class CacheModule(BaseCacheModule): def _expire_keys(self): if self._timeout > 0: expiry_age = time.time() - self._timeout - self._cache.zremrangebyscore(self._keys_set, 0, expiry_age) + self._cache.zremrangebyscore(self._keys_set, 0, expiry_age) def keys(self): self._expire_keys()