mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
fixes to events/callbacks (#32633)
* fixes to events/callbacks - made note of 'not called' methods for future fixes - removed uncalled v2_runner_on_file_diff because dupe of v2_on_file_diff, which is called - removed v2_runner_on_no_hosts due to existing pb level ones, which are called - removed v2_on_setup, it is just a task, triggers normal task events - v2_on_notify is now called when a handler is notified - TODO: async, cleanup? and import events these currently occur in code that has no access to sending events * corrected display
This commit is contained in:
parent
0e74731d73
commit
59d5481abb
3 changed files with 12 additions and 13 deletions
|
@ -304,3 +304,6 @@ class CallbackModule(CallbackBase):
|
|||
if (self._display.verbosity > 2 or '_ansible_verbose_always' in result._result) and '_ansible_verbose_override' not in result._result:
|
||||
msg += "Result was: %s" % self._dump_results(result._result)
|
||||
self._display.display(msg, color=C.COLOR_DEBUG)
|
||||
|
||||
def v2_playbook_on_notify(self, handler, host):
|
||||
self._display.vv("NOTIFIED HANDLER %s for %s" % (handler.get_name(), host))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue