summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2016-03-03 20:43:12 -0800
committerJames Cammarata <jimi@sngx.net>2016-03-21 12:59:23 -0400
commitf07ff69bd3ec5438cea9af3c77e4f698c7da158e (patch)
tree770b72d4bfa1f4a27b6d84cd00b7c355bd005607
parent89cc7629705101b100b39af23244590ec86facb6 (diff)
downloadansible-f07ff69bd3ec5438cea9af3c77e4f698c7da158e.tar.gz
Make the source path into a byte string before passing to os.path
-rw-r--r--lib/ansible/plugins/action/copy.py2
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)