From 81a40ac235f36635b0435cef50b6ca8168087053 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 8 Feb 2016 23:00:19 -0500 Subject: [PATCH] fix winrm erorr formatting --- 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 5d731c31dd8..e908a995419 100644 --- a/lib/ansible/plugins/connection/winrm.py +++ b/lib/ansible/plugins/connection/winrm.py @@ -151,7 +151,7 @@ class Connection(ConnectionBase): errors.append(u'%s: %s' % (transport, err_msg)) display.vvvvv(u'WINRM CONNECTION ERROR: %s\n%s' % (err_msg, to_unicode(traceback.format_exc())), host=self._winrm_host) if errors: - raise AnsibleError(', '.join(to_str(errors))) + raise AnsibleError(to_str(u', '.join((errors)))) else: raise AnsibleError('No transport found for WinRM connection')