handlers must be run once

so remove all occurences of each host from the handlers notified by
lists
This commit is contained in:
Stoned Elipot 2013-04-21 17:23:13 +02:00
parent 7fabaec55f
commit 747c7f0dff

View file

@ -509,7 +509,7 @@ class PlayBook(object):
self._run_task(play, handler, True) self._run_task(play, handler, True)
self.inventory.lift_restriction() self.inventory.lift_restriction()
for host in handler.notified_by: for host in handler.notified_by:
handler.notified_by.remove(host) handler.notified_by[:] = [h for h in handler.notified_by if h != host]
continue continue