* Don't pass keyword args as positional, include file_name. Fixes #38190 (#38194)
(cherry picked from commit ddf937d642
)
* Add changelog for #38194
This commit is contained in:
parent
63566334f6
commit
8277989039
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/include_vars_error_hang_fix.yaml
Normal file
2
changelogs/fragments/include_vars_error_hang_fix.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- include_vars - Call DataLoader.load with the correct signature to prevent hang on error processing (https://github.com/ansible/ansible/pull/38194)
|
|
@ -236,7 +236,7 @@ class ActionModule(ActionBase):
|
|||
data = to_text(b_data, errors='surrogate_or_strict')
|
||||
|
||||
self.show_content = show_content
|
||||
data = self._loader.load(data, show_content)
|
||||
data = self._loader.load(data, file_name=filename, show_content=show_content)
|
||||
if not data:
|
||||
data = dict()
|
||||
if not isinstance(data, dict):
|
||||
|
|
Loading…
Reference in a new issue