Skip to content

Commit

Permalink
Fix exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdehaan committed Mar 14, 2012
1 parent c909b66 commit 1a0672f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/utils.py
Expand Up @@ -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' ] :
Expand Down

0 comments on commit 1a0672f

Please sign in to comment.