diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2014-12-19 20:08:06 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-02-17 13:39:47 -0600 |
commit | eedd659444b8c3ffaaa2a13c03f44261f99dda02 (patch) | |
tree | 021ecec51eb68e3c7463282d43d117a9941b9ef4 | |
parent | 90ac8d621cab380eaa3339dd0594df2f4ce6653c (diff) | |
download | ansible-eedd659444b8c3ffaaa2a13c03f44261f99dda02.tar.gz |
fixed json encoding issue with redis
-rw-r--r-- | lib/ansible/cache/redis.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/cache/redis.py b/lib/ansible/cache/redis.py index c55b74469d..776c6c7f80 100644 --- a/lib/ansible/cache/redis.py +++ b/lib/ansible/cache/redis.py @@ -20,9 +20,9 @@ import collections # FIXME: can we store these as something else before we ship it? import sys import time -import json from ansible import constants as C +from ansible.utils import jsonify from ansible.cache.base import BaseCacheModule try: @@ -65,7 +65,7 @@ class CacheModule(BaseCacheModule): return json.loads(value) def set(self, key, value): - value2 = json.dumps(value) + value2 = jsonify(value) if self._timeout > 0: # a timeout of 0 is handled as meaning 'never expire' self._cache.setex(self._make_key(key), int(self._timeout), value2) else: |