From cedfec763a6f84fc34a44eec65dba36897036a38 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Wed, 27 Feb 2013 19:46:31 +0100 Subject: [PATCH] jsonify needs to return a string of {}, rather than a dict --- lib/ansible/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 7ebe196227..466fbb3f95 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -122,7 +122,7 @@ def jsonify(result, format=False): ''' format JSON output (uncompressed or uncompressed) ''' if result is None: - return {} + return "{}" result2 = result.copy() if format: return json.dumps(result2, sort_keys=True, indent=4)