mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-09 10:41:31 -07:00
Don't swallow exceptions when processing included files (#54791)
* Don't swallow exceptions when processing included files. Fixes #54786
This commit is contained in:
parent
17776142d1
commit
56ae8ebd60
4 changed files with 20 additions and 28 deletions
|
@ -324,16 +324,12 @@ class StrategyModule(StrategyBase):
|
|||
|
||||
self.update_active_connections(results)
|
||||
|
||||
try:
|
||||
included_files = IncludedFile.process_include_results(
|
||||
host_results,
|
||||
iterator=iterator,
|
||||
loader=self._loader,
|
||||
variable_manager=self._variable_manager
|
||||
)
|
||||
except AnsibleError as e:
|
||||
# this is a fatal error, so we abort here regardless of block state
|
||||
return self._tqm.RUN_ERROR
|
||||
included_files = IncludedFile.process_include_results(
|
||||
host_results,
|
||||
iterator=iterator,
|
||||
loader=self._loader,
|
||||
variable_manager=self._variable_manager
|
||||
)
|
||||
|
||||
include_failure = False
|
||||
if len(included_files) > 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue