From b8d6dec5ad0320d9a5642647f30d6c4edd050250 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Wed, 28 Nov 2012 22:04:44 +0100 Subject: [PATCH] Reset notified_by list per serialized batch Fixes the case where a handler attempts to run for every batch after any batch has notified it, regardless of whether the current batch did. --- lib/ansible/playbook/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/playbook/__init__.py b/lib/ansible/playbook/__init__.py index 69fc4c4bc99..68de7ed23d9 100644 --- a/lib/ansible/playbook/__init__.py +++ b/lib/ansible/playbook/__init__.py @@ -444,6 +444,7 @@ class PlayBook(object): self.inventory.restrict_to(handler.notified_by) self._run_task(play, handler, True) self.inventory.lift_restriction() + handler.notified_by = [] self.inventory.lift_also_restriction()