From bf656e35e0cd191a75b5722cabb378149cd29d1c Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Tue, 23 Dec 2014 16:15:26 +0100 Subject: [PATCH] facts caching: fix missing json in jsonfile caching --- lib/ansible/cache/jsonfile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/cache/jsonfile.py b/lib/ansible/cache/jsonfile.py index 81918a2836b..3e037e414ad 100644 --- a/lib/ansible/cache/jsonfile.py +++ b/lib/ansible/cache/jsonfile.py @@ -20,6 +20,11 @@ import time import json import errno +try: + import json +except ImportError: + import simplejson as json + from ansible import constants as C from ansible import utils from ansible.cache.base import BaseCacheModule