convert winrm put_file script template to Unicode string literal

Fixes traceback on homedirs with non-ascii chars
This commit is contained in:
nitzmahone 2016-01-07 16:23:55 -08:00
parent 41a417be1f
commit 45355cd566

View file

@ -271,7 +271,7 @@ class Connection(ConnectionBase):
if not os.path.exists(in_path): if not os.path.exists(in_path):
raise AnsibleFileNotFound('file or module does not exist: "%s"' % in_path) raise AnsibleFileNotFound('file or module does not exist: "%s"' % in_path)
script_template = ''' script_template = u'''
begin {{ begin {{
$path = "{0}" $path = "{0}"