Scan group_vars/host_vars in sorted order

This commit is contained in:
André Althaus 2017-11-16 10:37:45 +01:00 committed by Brian Coca
commit a9b15ce881
2 changed files with 2 additions and 2 deletions

View file

@ -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]