Don't compare group_vars paths with bytestrings (#27922)
* Don't compare group_vars paths with bytestrings * Compare spath with unicode string in VarsModule
This commit is contained in:
parent
0464a21a85
commit
0e334ca821
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class VarsModule(BaseVarsPlugin):
|
|||
|
||||
found = []
|
||||
for spath in os.listdir(path):
|
||||
if not spath.startswith(b'.') and not spath.endswith(b'~'): # skip hidden and backups
|
||||
if not spath.startswith(u'.') and not spath.endswith(u'~'): # skip hidden and backups
|
||||
|
||||
ext = os.path.splitext(spath)[-1]
|
||||
full_spath = os.path.join(path, spath)
|
||||
|
|
Loading…
Reference in a new issue