mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47165 from terminalmage/issue47081
Make sure a str type is passed to os.walk
This commit is contained in:
commit
2ee8006da3
1 changed files with 1 additions and 1 deletions
|
@ -406,5 +406,5 @@ def os_walk(top, *args, **kwargs):
|
|||
This is a helper than ensures that all paths returned from os.walk are
|
||||
unicode.
|
||||
'''
|
||||
for item in os.walk(top, *args, **kwargs):
|
||||
for item in os.walk(salt.utils.stringutils.to_str(top), *args, **kwargs):
|
||||
yield salt.utils.data.decode(item, preserve_tuples=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue