community.general/lib/ansible/plugins/connection
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
..
__init__.py Re-add support for setting shell from play context (#52139) 2019-02-13 11:49:13 -06:00
buildah.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
chroot.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
docker.py fix docker default remote_user (#52137) 2019-02-12 16:29:27 -08:00
funcd.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
httpapi.py standardize connection variable names (#51776) 2019-02-11 10:43:10 -05:00
iocage.py Python3 fix: Decode output from popen in iocage connection (#41868) 2019-01-28 11:34:39 -05:00
jail.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
kubectl.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
libvirt_lxc.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
local.py Update connection plugins to use correct, non-deprecated, methods (#52038) 2019-02-11 13:44:54 -06:00
lxc.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
lxd.py
napalm.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
netconf.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
network_cli.py standardize connection variable names (#51776) 2019-02-11 10:43:10 -05:00
oc.py fix: ansible_kubectl_ssl_ca_cert variable (#50217) 2018-12-23 09:59:34 +01:00
paramiko_ssh.py Update connection plugins to use correct, non-deprecated, methods (#52038) 2019-02-11 13:44:54 -06:00
persistent.py Copy detailed logging to persistent.py so local can benefit, too. (#50614) 2019-01-07 15:46:31 -05:00
podman.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
psrp.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
qubes.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
saltstack.py Close all open filehandle (#50544) 2019-01-11 10:14:08 -05:00
ssh.py Update connection plugins to use correct, non-deprecated, methods (#52038) 2019-02-11 13:44:54 -06:00
winrm.py Raise AnsibleConnectionError on winrm connnection errors (#51744) 2019-02-13 14:55:55 -05:00
zone.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00