From ae9843fccdac1bc5da95f2c9d274e927f4a43962 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 3 Feb 2014 10:10:45 -0600 Subject: [PATCH] Fix issue with handler notifications being sent out incorrectly This is a partial revert of e8ad36c, which introduced the bug. Fixes #5848 --- 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 0d72548582..b52ee48770 100644 --- a/lib/ansible/playbook/__init__.py +++ b/lib/ansible/playbook/__init__.py @@ -299,7 +299,7 @@ class PlayBook(object): def _trim_unavailable_hosts(self, hostlist=[]): ''' returns a list of hosts that haven't failed and aren't dark ''' - return [ h for h in hostlist if (h not in self.stats.failures) and (h not in self.stats.dark)] + return [ h for h in self.inventory.list_hosts(hostlist) if (h not in self.stats.failures) and (h not in self.stats.dark)] # *****************************************************