Only insert notified host if it's not already notified for certain cases

Fixes #18178
pull/23274/head
James Cammarata 8 years ago
parent 21ab4343e3
commit a567c5de65

@ -454,9 +454,10 @@ class StrategyBase:
for target_handler_uuid in self._notified_handlers: for target_handler_uuid in self._notified_handlers:
target_handler = search_handler_blocks_by_uuid(target_handler_uuid, iterator._play.handlers) target_handler = search_handler_blocks_by_uuid(target_handler_uuid, iterator._play.handlers)
if target_handler and parent_handler_match(target_handler, handler_name): if target_handler and parent_handler_match(target_handler, handler_name):
found = True
if original_host not in self._notified_handlers[target_handler._uuid]:
self._notified_handlers[target_handler._uuid].append(original_host) self._notified_handlers[target_handler._uuid].append(original_host)
display.vv("NOTIFIED HANDLER %s" % (target_handler.get_name(),)) display.vv("NOTIFIED HANDLER %s" % (target_handler.get_name(),))
found = True
if handler_name in self._listening_handlers: if handler_name in self._listening_handlers:
for listening_handler_uuid in self._listening_handlers[handler_name]: for listening_handler_uuid in self._listening_handlers[handler_name]:

Loading…
Cancel
Save