mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix bug in logic introduced in 614c626
This commit is contained in:
parent
293dd38d05
commit
da307c8bfd
1 changed files with 5 additions and 5 deletions
|
@ -203,16 +203,16 @@ class StrategyModule(StrategyBase):
|
||||||
if run_once:
|
if run_once:
|
||||||
break
|
break
|
||||||
|
|
||||||
if not work_to_do:
|
debug("done queuing things up, now waiting for results queue to drain")
|
||||||
|
results = self._wait_on_pending_results(iterator)
|
||||||
|
host_results.extend(results)
|
||||||
|
|
||||||
|
if not work_to_do and len(iterator.get_failed_hosts()) > 0:
|
||||||
debug("out of hosts to run on")
|
debug("out of hosts to run on")
|
||||||
self._tqm.send_callback('v2_playbook_on_no_hosts_remaining')
|
self._tqm.send_callback('v2_playbook_on_no_hosts_remaining')
|
||||||
result = False
|
result = False
|
||||||
break
|
break
|
||||||
|
|
||||||
debug("done queuing things up, now waiting for results queue to drain")
|
|
||||||
results = self._wait_on_pending_results(iterator)
|
|
||||||
host_results.extend(results)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
included_files = IncludedFile.process_include_results(host_results, self._tqm, iterator=iterator, loader=self._loader, variable_manager=self._variable_manager)
|
included_files = IncludedFile.process_include_results(host_results, self._tqm, iterator=iterator, loader=self._loader, variable_manager=self._variable_manager)
|
||||||
except AnsibleError, e:
|
except AnsibleError, e:
|
||||||
|
|
Loading…
Reference in a new issue