1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/plugins
Simon Westphahl 02e87b7d70 Raise AnsibleConnectionError on winrm connnection errors (#51744)
* Raise AnsibleConnectionError on winrm con errors

Currently all uncaught exceptions of the requests library that is used
in winrm will lead to an "Unexpected failure during module execution".

Instead of letting all exceptions bubble up we catch the connection
related errors (inkl. timeouts) and re-raise them as
AnsibleConnectionError so Ansible will mark the host as unreachable and
exit with the correct return code.

This is especially important for Zuul (https://zuul-ci.org) to
distinguish between failures and connection/host related errors.

* Update lib/ansible/plugins/connection/winrm.py

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

* Add changelog fragment
2019-02-13 14:55:55 -05:00
..
action Disallow use of remote home directories containing .. in their path (CVE-2019-3828) (#52133) 2019-02-13 10:38:28 -06:00
become Become plugins (#50991) 2019-02-11 11:27:44 -06:00
cache FactCache changes 2018-12-05 12:33:27 -08:00
callback callbacks/slack: Explicitly set Content-Type header (#51824) 2019-02-12 12:47:33 -05:00
cliconf Fix more incorrect uses of is operator. 2019-02-12 20:04:20 -08:00
connection Raise AnsibleConnectionError on winrm connnection errors (#51744) 2019-02-13 14:55:55 -05:00
doc_fragments cloudscale: combine docs in fragment (#52069) 2019-02-13 13:52:01 -06:00
filter Close all open filehandle (#50544) 2019-01-11 10:14:08 -05:00
httpapi Fortinet FortiManager Connection Plugin RC, plus associated utilities (#50336) 2019-02-07 08:55:30 -05:00
inventory Send openstack inventory logs to stderr (#51827) 2019-02-13 13:36:37 +00:00
lookup hashi_vault: fix multiple spaces in params (#51524) 2019-02-13 18:32:00 +05:30
netconf Fix connect_timeout config varaible in netconf connection (#51055) 2019-01-21 12:21:09 +05:30
shell Become plugins (#50991) 2019-02-11 11:27:44 -06:00
strategy Become plugins (#50991) 2019-02-11 11:27:44 -06:00
terminal frr: Add terminal and cliconf plugins (#51169) 2019-02-01 17:56:31 +05:30
test Simplify regex filter code (#50202) 2019-02-03 15:10:16 -05:00
vars Fix encoding issues with file paths. (#50830) 2019-01-14 13:06:47 -08:00
__init__.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
loader.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00