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

Fix issue with handler notifications being sent out incorrectly

This is a partial revert of e8ad36c, which introduced the bug.

Fixes #5848
This commit is contained in:
James Cammarata 2014-02-03 10:10:45 -06:00
parent 4e3c14f0fa
commit ae9843fccd

View file

@ -299,7 +299,7 @@ class PlayBook(object):
def _trim_unavailable_hosts(self, hostlist=[]): def _trim_unavailable_hosts(self, hostlist=[]):
''' returns a list of hosts that haven't failed and aren't dark ''' ''' 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)]
# ***************************************************** # *****************************************************