diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2016-03-03 20:43:12 -0800 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2016-03-21 12:59:23 -0400 |
commit | f07ff69bd3ec5438cea9af3c77e4f698c7da158e (patch) | |
tree | 770b72d4bfa1f4a27b6d84cd00b7c355bd005607 | |
parent | 89cc7629705101b100b39af23244590ec86facb6 (diff) | |
download | ansible-f07ff69bd3ec5438cea9af3c77e4f698c7da158e.tar.gz |
Make the source path into a byte string before passing to os.path
-rw-r--r-- | lib/ansible/plugins/action/copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/copy.py b/lib/ansible/plugins/action/copy.py index c50076c543..8941db434b 100644 --- a/lib/ansible/plugins/action/copy.py +++ b/lib/ansible/plugins/action/copy.py @@ -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) |