Commit 1a0672fd by Michael DeHaan

Fix exception type

parent c909b668
......@@ -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' ] :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment