mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #6390 from sergevanginderachter/group-varsdirs-svn
group_vars plugin: do not parse hidden files in subfolders
This commit is contained in:
commit
4a06954a13
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,8 @@ def _load_vars_from_folder(folder_path, results):
|
||||||
# filesystem lists them.
|
# filesystem lists them.
|
||||||
names.sort()
|
names.sort()
|
||||||
|
|
||||||
paths = [os.path.join(folder_path, name) for name in names]
|
# do not parse hidden files or dirs, e.g. .svn/
|
||||||
|
paths = [os.path.join(folder_path, name) for name in names if not name.startswith('.')]
|
||||||
for path in paths:
|
for path in paths:
|
||||||
_found, results = _load_vars_from_path(path, results)
|
_found, results = _load_vars_from_path(path, results)
|
||||||
return results
|
return results
|
||||||
|
|
Loading…
Reference in a new issue