mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Scan group_vars/host_vars in sorted order
This commit is contained in:
committed by
Brian Coca
parent
97dfa1d335
commit
a9b15ce881
@@ -134,7 +134,7 @@ class VarsModule(BaseVarsPlugin):
|
||||
def _get_dir_files(self, path):
|
||||
|
||||
found = []
|
||||
for spath in os.listdir(path):
|
||||
for spath in sorted(os.listdir(path)):
|
||||
if not spath.startswith(u'.') and not spath.endswith(u'~'): # skip hidden and backups
|
||||
|
||||
ext = os.path.splitext(spath)[-1]
|
||||
|
||||
Reference in New Issue
Block a user