summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2023-04-24 17:06:07 +0200
committerGitHub <noreply@github.com>2023-04-24 17:06:07 +0200
commit989a7d69515c7de4f7abbfe45940f686001d511b (patch)
tree00d33359219ea884e349026660fa7e8016544f81 /lib/ansible/plugins
parentf4615d69ad2ef1f024ba677ee6a77f49a4b7bfff (diff)
downloadansible-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__.py2
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)