mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Fix recursive call of _load_inventory_file() in VariableManager
Fixes #16128
This commit is contained in:
parent
560532da7d
commit
add2d1947e
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ class VariableManager:
|
||||||
# do not parse hidden files or dirs, e.g. .svn/
|
# do not parse hidden files or dirs, e.g. .svn/
|
||||||
paths = [os.path.join(path, name) for name in names if not name.startswith('.')]
|
paths = [os.path.join(path, name) for name in names if not name.startswith('.')]
|
||||||
for p in paths:
|
for p in paths:
|
||||||
_found, results = self._load_inventory_file(path=p, loader=loader)
|
results = self._load_inventory_file(path=p, loader=loader)
|
||||||
if results is not None:
|
if results is not None:
|
||||||
data = combine_vars(data, results)
|
data = combine_vars(data, results)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue