Commit 5af27191 by Michael DeHaan

Fix duplicate handler notification issue in 1.2 devel

parent 224e20ca
...@@ -510,8 +510,12 @@ class PlayBook(object): ...@@ -510,8 +510,12 @@ class PlayBook(object):
self.inventory.restrict_to(handler.notified_by) self.inventory.restrict_to(handler.notified_by)
self._run_task(play, handler, True) self._run_task(play, handler, True)
self.inventory.lift_restriction() self.inventory.lift_restriction()
new_list = handler.notified_by[:]
for host in handler.notified_by: for host in handler.notified_by:
handler.notified_by[:] = [h for h in handler.notified_by if h != host] if host in on_hosts:
while host in new_list:
new_list.remove(host)
handler.notified_by = new_list
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment