Skip to content

Commit

Permalink
Need to apply to_str to each element of the list so that we don't mix…
Browse files Browse the repository at this point in the history
… types in the join()

"Third time's the charm"
  • Loading branch information
abadger committed Feb 9, 2016
1 parent 81a40ac commit 06b2400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/connection/winrm.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _winrm_connect(self):
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')

Expand Down

0 comments on commit 06b2400

Please sign in to comment.