diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2023-04-24 17:06:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 17:06:07 +0200 |
commit | 989a7d69515c7de4f7abbfe45940f686001d511b (patch) | |
tree | 00d33359219ea884e349026660fa7e8016544f81 /lib/ansible/plugins | |
parent | f4615d69ad2ef1f024ba677ee6a77f49a4b7bfff (diff) | |
download | ansible-989a7d69515c7de4f7abbfe45940f686001d511b.tar.gz |
Fix calling v2_playbook_on_notify callback (#80585)
Co-authored-by: Matt Martz <matt@sivel.net>
Diffstat (limited to 'lib/ansible/plugins')
-rw-r--r-- | lib/ansible/plugins/strategy/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/strategy/__init__.py b/lib/ansible/plugins/strategy/__init__.py index 7b80890003..1ace575bd5 100644 --- a/lib/ansible/plugins/strategy/__init__.py +++ b/lib/ansible/plugins/strategy/__init__.py @@ -947,7 +947,7 @@ class StrategyBase: # actually notify proper handlers based on all notifications up to this point for notification in list(host_state.handler_notifications): for handler in self.search_handlers_by_notification(notification, iterator): - if not handler.notify_host(target_host): + if handler.notify_host(target_host): # NOTE even with notifications deduplicated this can still happen in case of handlers being # notified multiple times using different names, like role name or fqcn self._tqm.send_callback('v2_playbook_on_notify', handler, target_host) |