From b5e99c852e0d91a4f26e6103e9270ef7f970d893 Mon Sep 17 00:00:00 2001
From: Rene Moser <mail@renemoser.net>
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 a3768209bca..1ccf9b4a558 100644
--- a/lib/ansible/cache/jsonfile.py
+++ b/lib/ansible/cache/jsonfile.py
@@ -19,6 +19,11 @@ import os
 import time
 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