|
|
@ -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)
|
|
|
|