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

vars: fixed missing path in splitext()

This commit is contained in:
Rene Moser 2017-06-16 16:05:41 +02:00 committed by Brian Coca
parent a38e727380
commit 43468b825d

View file

@ -123,7 +123,7 @@ class VarsModule(BaseVarsPlugin):
for spath in os.listdir(path): for spath in os.listdir(path):
if not spath.startswith('.'): # skip hidden if not spath.startswith('.'): # skip hidden
ext = os.path.splitext()[-1] ext = os.path.splitext(path)[-1]
full_spath = os.path.join(path, spath) full_spath = os.path.join(path, spath)
if os.path.isdir(full_spath) and not ext: # recursive search if dir if os.path.isdir(full_spath) and not ext: # recursive search if dir