mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
added docstring to get_hosts_left
This commit is contained in:
parent
6a4039e169
commit
4fb8b03f05
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue