mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix duplicate handler notification issue in 1.2 devel
This commit is contained in:
parent
224e20ca60
commit
5af271911b
1 changed files with 5 additions and 1 deletions
|
@ -510,8 +510,12 @@ class PlayBook(object):
|
|||
self.inventory.restrict_to(handler.notified_by)
|
||||
self._run_task(play, handler, True)
|
||||
self.inventory.lift_restriction()
|
||||
new_list = 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue