From 07f12539eee2faac5fe831cd31f1f0a5d3e7e661 Mon Sep 17 00:00:00 2001 From: Chris Baughman Date: Fri, 22 Aug 2014 15:09:48 -0400 Subject: [PATCH] Bugfix: #8720 winrm.py: protocol.send_message() crashes with https --- lib/ansible/runner/connection_plugins/winrm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/connection_plugins/winrm.py b/lib/ansible/runner/connection_plugins/winrm.py index 9d7eac4265..d6e51710b5 100644 --- a/lib/ansible/runner/connection_plugins/winrm.py +++ b/lib/ansible/runner/connection_plugins/winrm.py @@ -87,7 +87,7 @@ class Connection(object): _winrm_cache[cache_key] = protocol return protocol except WinRMTransportError, exc: - err_msg = str(exc.args[0]) + err_msg = str(exc) if re.search(r'Operation\s+?timed\s+?out', err_msg, re.I): raise errors.AnsibleError("the connection attempt timed out") m = re.search(r'Code\s+?(\d{3})', err_msg)