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"
This commit is contained in:
Toshio Kuratomi 2016-02-08 20:28:55 -08:00
parent 81a40ac235
commit 06b2400aae

View file

@ -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')