1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Styling: indentation

This commit is contained in:
Michael DeHaan 2013-06-30 18:49:49 -04:00
parent 82d51e6354
commit f2fc185651

View file

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