mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Remove print statements
"print item" raises an exception when type of item is jinja2.runtime.StrictUndefined
This commit is contained in:
parent
f82ac9f8e9
commit
d3a470db0c
1 changed files with 0 additions and 2 deletions
|
@ -42,8 +42,6 @@ def failed(*a, **kw):
|
||||||
''' Test if task result yields failed '''
|
''' Test if task result yields failed '''
|
||||||
item = a[0]
|
item = a[0]
|
||||||
if type(item) != dict:
|
if type(item) != dict:
|
||||||
print "DEBUG: GOT A"
|
|
||||||
print item
|
|
||||||
raise errors.AnsibleFilterError("|failed expects a dictionary")
|
raise errors.AnsibleFilterError("|failed expects a dictionary")
|
||||||
rc = item.get('rc',0)
|
rc = item.get('rc',0)
|
||||||
failed = item.get('failed',False)
|
failed = item.get('failed',False)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue