summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristopher Johnston <chjohnst@gmail.com>2012-02-29 18:30:02 +0100
committerChristopher Johnston <chjohnst@gmail.com>2012-02-29 18:30:02 +0100
commit2773234c3fd8745e78ae8a8578e128cf9040d599 (patch)
treea4b27d8402f4358e9986dfbde907e938ce5510a8 /lib
parentTrim errors on connection refused messages (diff)
downloadansible-2773234c3fd8745e78ae8a8578e128cf9040d599.tar.xz
ansible-2773234c3fd8745e78ae8a8578e128cf9040d599.zip
python 2.5 does not include json so lets try to use simplejson
Diffstat (limited to 'lib')
-rwxr-xr-xlib/ansible/runner.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py
index aad7553259..8a343a37d6 100755
--- a/lib/ansible/runner.py
+++ b/lib/ansible/runner.py
@@ -16,11 +16,15 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
+try:
+ import json
+except ImportError:
+ import simplejson as json
+
import fnmatch
import multiprocessing
import signal
import os
-import json
import traceback
import paramiko # non-core dependency
import ansible.constants as C