You've already forked community.general
mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 07:41:16 +03:00
selective: mark task failed correctly (#629)
Added additional condition to detect failed task in selective callback plugin when ran with loop or with_items. Fixes: ansible/ansible#63767 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@ -201,7 +201,7 @@ class CallbackModule(CallbackBase):
|
||||
)
|
||||
if 'results' in result._result:
|
||||
for r in result._result['results']:
|
||||
failed = 'failed' in r
|
||||
failed = 'failed' in r and r['failed']
|
||||
|
||||
stderr = [r.get('exception', None), r.get('module_stderr', None)]
|
||||
stderr = "\n".join([e for e in stderr if e]).strip()
|
||||
|
Reference in New Issue
Block a user