added docstring to get_hosts_left

This commit is contained in:
Brian Coca 2017-03-16 12:15:17 -04:00
parent 6a4039e169
commit 4fb8b03f05

View file

@ -920,6 +920,7 @@ class StrategyBase:
return [TaskResult(target_host, task, result)] return [TaskResult(target_host, task, result)]
def get_hosts_left(self, iterator): def get_hosts_left(self, iterator):
''' returns list of available hosts for this iterator by filtering out unreachables '''
hosts_left = [] hosts_left = []
for host in self._inventory.get_hosts(iterator._play.hosts, order=iterator._play.order): for host in self._inventory.get_hosts(iterator._play.hosts, order=iterator._play.order):