From 06b2400aae0aca05f1950aa31f97a53959f3967a Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 8 Feb 2016 20:28:55 -0800 Subject: [PATCH] Need to apply to_str to each element of the list so that we don't mix types in the join() "Third time's the charm" --- 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 e908a99541..125e54cb9a 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(to_str(u', '.join((errors)))) + raise AnsibleError(', '.join(map(to_str, errors))) else: raise AnsibleError('No transport found for WinRM connection')