Commit f2fc1856 by Michael DeHaan

Styling: indentation

parent 82d51e63
......@@ -32,13 +32,13 @@ def to_nice_json(*a, **kw):
def failed(*a, **kw):
item = a[0]
if type(item) != dict:
raise errors.AnsibleError("|failed expects a dictionary")
raise errors.AnsibleError("|failed expects a dictionary")
rc = item.get('rc',0)
failed = item.get('failed',False)
if rc != 0 or failed:
return True
return True
else:
return False
return False
def success(*a, **kw):
return not failed(*a, **kw)
......
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