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

Merge pull request #2731 from stoned/flush_handlers-cleanup

handlers must be run once
This commit is contained in:
Michael DeHaan 2013-04-21 14:14:04 -07:00
commit b08181e9b4

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