From 0c250f2b07f1165de6e80a3dc8846954f9c1e4cd Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sat, 23 Jan 2016 09:25:50 -0500 Subject: [PATCH] Use templated handler name during callback Fixes #14082 --- lib/ansible/plugins/strategy/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/plugins/strategy/__init__.py b/lib/ansible/plugins/strategy/__init__.py index 3013eac3d70..27e7b2f9741 100644 --- a/lib/ansible/plugins/strategy/__init__.py +++ b/lib/ansible/plugins/strategy/__init__.py @@ -545,7 +545,10 @@ class StrategyBase: # self._tqm.send_callback('v2_playbook_on_no_hosts_remaining') # result = False # break + saved_name = handler.name + handler.name = handler_name self._tqm.send_callback('v2_playbook_on_handler_task_start', handler) + handler.name = saved_name if notified_hosts is None: notified_hosts = self._notified_handlers[handler_name]