Try to pass in item to on_skippped callback.
This commit is contained in:
parent
c5e9a06c2a
commit
48bf7a000d
1 changed files with 1 additions and 1 deletions
|
@ -884,7 +884,7 @@ class Runner(object):
|
||||||
# no callbacks
|
# no callbacks
|
||||||
return result
|
return result
|
||||||
if 'skipped' in data:
|
if 'skipped' in data:
|
||||||
self.callbacks.on_skipped(host)
|
self.callbacks.on_skipped(host, inject.get('item',None))
|
||||||
elif not result.is_successful():
|
elif not result.is_successful():
|
||||||
ignore_errors = self.module_vars.get('ignore_errors', False)
|
ignore_errors = self.module_vars.get('ignore_errors', False)
|
||||||
self.callbacks.on_failed(host, data, ignore_errors)
|
self.callbacks.on_failed(host, data, ignore_errors)
|
||||||
|
|
Loading…
Add table
Reference in a new issue