Catch all request timeouts for winrm connection (#54104)

* Catch all request timeouts for winrm connection

The current implementation only catches 'ConnectTimeout' exceptions.
Instead we should catch 'Timout' which also catches ReadTimeout
exceptions.

Improves on: #51744

Co-Authored-By: westphahl <westphahl@gmail.com>

* Changelog for winrm error handling improvement
This commit is contained in:
Simon Westphahl
2019-03-28 04:44:49 +01:00
committed by Jordan Borean
parent e2d2874d81
commit a44dfed570
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
---
minor_changes:
- Catch all connection timeout related exceptions and raise
AnsibleConnectionError instead