1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/plugins/cache
Sam Doran 479b26fe31 Do not try to import simplejson in jsonfile.py (#40983)
With the addition on ajson.py in cbb6a7f4e8, two
new classes were created: AnsibleJSONDecoder and AnsibleJSONEncoder. These
classes are used when calling json.looads() and json.dumps().

This works fine with everything except the jsonfile.py cache plugin, which would
first try to import simplejson as json, then fall back to json. When simplejson
is installed, the load() or dump methods from simplejson are called, which then
try to use the AnsibleJSONEncoder/AnsibleJSONDecoder subclass from ajson.py.
But asjon.py imports json, not simplejson, and things blow up.
2018-06-01 11:24:57 -07:00
..
__init__.py Fix cache timeout behavior 2018-06-01 12:25:04 -04:00
base.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
jsonfile.py Do not try to import simplejson in jsonfile.py (#40983) 2018-06-01 11:24:57 -07:00
memcached.py Correct doc for cache plugin 2018-05-21 13:29:03 -04:00
memory.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
mongodb.py Correct doc for cache plugin 2018-05-21 13:29:03 -04:00
pickle.py Correct doc for cache plugin 2018-05-21 13:29:03 -04:00
redis.py Correct doc for cache plugin 2018-05-21 13:29:03 -04:00
yaml.py Correct doc for cache plugin 2018-05-21 13:29:03 -04:00