1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #7021 from smoothify/skipped-items

skipped callback in loop does not display 'item'.
This commit is contained in:
James Cammarata 2014-04-16 11:22:57 -05:00
commit 36b9bc4d40

View file

@ -884,7 +884,7 @@ class Runner(object):
# no callbacks
return result
if 'skipped' in data:
self.callbacks.on_skipped(host)
self.callbacks.on_skipped(host, inject.get('item',None))
elif not result.is_successful():
ignore_errors = self.module_vars.get('ignore_errors', False)
self.callbacks.on_failed(host, data, ignore_errors)