From 1a0672fd1e6947109884d7c86249653382ad376a Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 14 Mar 2012 12:51:26 -0400 Subject: [PATCH] Fix exception type --- lib/ansible/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils.py b/lib/ansible/utils.py index a0aec630af..86774463b4 100755 --- a/lib/ansible/utils.py +++ b/lib/ansible/utils.py @@ -196,7 +196,7 @@ def parse_json(data): tokens = shlex.split(data) for t in tokens: if t.find("=") == -1: - raise AnsibleException("failed to parse: %s" % data) + raise AnsibleError("failed to parse: %s" % data) (key,value) = t.split("=", 1) if key == 'changed' or 'failed': if value.lower() in [ 'true', '1' ] :