1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

skip hidden files for {host,group}_vars

fixes #25712
This commit is contained in:
Brian Coca 2017-06-14 15:48:42 -04:00
parent b85785bf07
commit 077ca3e07d

View file

@ -108,6 +108,8 @@ class VarsModule(BaseVarsPlugin):
if os.path.isdir(full_path):
# matched dir name, so use all files included recursively
for spath in os.listdir(full_path):
if spath.startswith('.'):
continue
full_spath = os.path.join(full_path, spath)
if os.path.isdir(full_spath):
found.extend(self._find_vars_files(full_spath, ''))