facts caching: fix missing json in jsonfile caching
This commit is contained in:
parent
f9c203feb6
commit
b5e99c852e
1 changed files with 5 additions and 0 deletions
5
lib/ansible/cache/jsonfile.py
vendored
5
lib/ansible/cache/jsonfile.py
vendored
|
@ -19,6 +19,11 @@ import os
|
||||||
import time
|
import time
|
||||||
import errno
|
import errno
|
||||||
|
|
||||||
|
try:
|
||||||
|
import json
|
||||||
|
except ImportError:
|
||||||
|
import simplejson as json
|
||||||
|
|
||||||
from ansible import constants as C
|
from ansible import constants as C
|
||||||
from ansible import utils
|
from ansible import utils
|
||||||
from ansible.cache.base import BaseCacheModule
|
from ansible.cache.base import BaseCacheModule
|
||||||
|
|
Loading…
Reference in a new issue