mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 11:22:47 +00:00
vars: fix typo s/path/spath
This commit is contained in:
@@ -123,7 +123,7 @@ class VarsModule(BaseVarsPlugin):
|
||||
for spath in os.listdir(path):
|
||||
if not spath.startswith('.'): # skip hidden
|
||||
|
||||
ext = os.path.splitext(path)[-1]
|
||||
ext = os.path.splitext(spath)[-1]
|
||||
full_spath = os.path.join(path, spath)
|
||||
|
||||
if os.path.isdir(full_spath) and not ext: # recursive search if dir
|
||||
|
||||
Reference in New Issue
Block a user