Fix exception type

pull/70/head
Michael DeHaan 13 years ago
parent c909b66864
commit 1a0672fd1e

@ -196,7 +196,7 @@ def parse_json(data):
tokens = shlex.split(data) tokens = shlex.split(data)
for t in tokens: for t in tokens:
if t.find("=") == -1: if t.find("=") == -1:
raise AnsibleException("failed to parse: %s" % data) raise AnsibleError("failed to parse: %s" % data)
(key,value) = t.split("=", 1) (key,value) = t.split("=", 1)
if key == 'changed' or 'failed': if key == 'changed' or 'failed':
if value.lower() in [ 'true', '1' ] : if value.lower() in [ 'true', '1' ] :

Loading…
Cancel
Save