mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Restore json import for redis as well. Switch preference to simplejson for speed
This commit is contained in:
4
lib/ansible/cache/jsonfile.py
vendored
4
lib/ansible/cache/jsonfile.py
vendored
@@ -20,9 +20,9 @@ import time
|
||||
import errno
|
||||
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
from ansible import constants as C
|
||||
from ansible import utils
|
||||
|
||||
5
lib/ansible/cache/redis.py
vendored
5
lib/ansible/cache/redis.py
vendored
@@ -21,6 +21,11 @@ import collections
|
||||
import sys
|
||||
import time
|
||||
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
from ansible import constants as C
|
||||
from ansible.utils import jsonify
|
||||
from ansible.cache.base import BaseCacheModule
|
||||
|
||||
Reference in New Issue
Block a user