mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix winrm erorr formatting
This commit is contained in:
parent
5014919099
commit
81a40ac235
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue