1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.inventory.lift_restriction()
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