Don't swallow exceptions when processing included files (#54791)

* Don't swallow exceptions when processing included files. Fixes #54786
This commit is contained in:
Matt Martz 2019-04-08 11:03:22 -05:00 committed by Brian Coca
parent 17776142d1
commit 56ae8ebd60
4 changed files with 20 additions and 28 deletions

View file

@ -893,15 +893,12 @@ class StrategyBase:
# collect the results from the handler run
host_results = self._wait_on_handler_results(iterator, handler, notified_hosts)
try:
included_files = IncludedFile.process_include_results(
host_results,
iterator=iterator,
loader=self._loader,
variable_manager=self._variable_manager
)
except AnsibleError:
return False
included_files = IncludedFile.process_include_results(
host_results,
iterator=iterator,
loader=self._loader,
variable_manager=self._variable_manager
)
result = True
if len(included_files) > 0: