From 747c7f0dff9e0a23e17cf8f6e6d1aaeb80a60296 Mon Sep 17 00:00:00 2001 From: Stoned Elipot Date: Sun, 21 Apr 2013 17:23:13 +0200 Subject: [PATCH] handlers must be run once so remove all occurences of each host from the handlers notified by lists --- lib/ansible/playbook/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/__init__.py b/lib/ansible/playbook/__init__.py index 99e96adfcf4..638dbf6306b 100644 --- a/lib/ansible/playbook/__init__.py +++ b/lib/ansible/playbook/__init__.py @@ -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