Commit ae9843fc by James Cammarata

Fix issue with handler notifications being sent out incorrectly

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

Fixes #5848
parent 4e3c14f0
......@@ -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)]
# *****************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment