mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Make the source path into a byte string before passing to os.path
This commit is contained in:
parent
069e597aaa
commit
253376b3b7
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class ActionModule(ActionBase):
|
|||
source_files = []
|
||||
|
||||
# If source is a directory populate our list else source is a file and translate it to a tuple.
|
||||
if os.path.isdir(source):
|
||||
if os.path.isdir(to_bytes(source)):
|
||||
# Get the amount of spaces to remove to get the relative path.
|
||||
if source_trailing_slash:
|
||||
sz = len(source)
|
||||
|
|
Loading…
Reference in a new issue