Remove print statements

"print item" raises an exception when type of item is
jinja2.runtime.StrictUndefined
This commit is contained in:
Pierre-Louis Bonicoli 2014-03-21 02:32:33 +01:00
parent f82ac9f8e9
commit d3a470db0c

View file

@ -42,8 +42,6 @@ def failed(*a, **kw):
''' Test if task result yields failed '''
item = a[0]
if type(item) != dict:
print "DEBUG: GOT A"
print item
raise errors.AnsibleFilterError("|failed expects a dictionary")
rc = item.get('rc',0)
failed = item.get('failed',False)