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:
parent
82d51e6354
commit
f2fc185651
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue