From 45355cd5660da17350811d92a5144077910ea434 Mon Sep 17 00:00:00 2001 From: nitzmahone Date: Thu, 7 Jan 2016 16:23:55 -0800 Subject: [PATCH] convert winrm put_file script template to Unicode string literal Fixes traceback on homedirs with non-ascii chars --- lib/ansible/plugins/connection/winrm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/connection/winrm.py b/lib/ansible/plugins/connection/winrm.py index 622231675d0..dec48787408 100644 --- a/lib/ansible/plugins/connection/winrm.py +++ b/lib/ansible/plugins/connection/winrm.py @@ -271,7 +271,7 @@ class Connection(ConnectionBase): if not os.path.exists(in_path): raise AnsibleFileNotFound('file or module does not exist: "%s"' % in_path) - script_template = ''' + script_template = u''' begin {{ $path = "{0}"