community.general/lib/ansible
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
..
cli Restore behavior for detecting only localhost, and no limit match. Fixes #52152 (#52172) 2019-02-13 11:52:30 -06:00
compat Have update-bundled check for updates to all bundled code 2019-02-06 13:59:55 -08:00
config docs: update docs about pipelining (#51856) 2019-02-12 12:49:00 -05:00
errors Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 2019-01-23 11:32:25 -05:00
executor Become plugins (#50991) 2019-02-11 11:27:44 -06:00
galaxy Consistent typesetting of "GitHub" (#50929) 2019-01-15 14:53:04 +01:00
inventory make missing pattern ansibleerror (#51397) 2019-01-30 19:13:19 -05:00
module_utils docker_*: always use client.fail() over module.fail_json(), allow to always return data on failure (#51999) 2019-02-13 14:10:23 -05:00
modules Fortinet's FortiOS log fortianalyzer3 setting (#52161) 2019-02-13 19:55:31 +00:00
parsing ansible-vault: handle utf-8 filename in vault (#50341) 2019-02-12 16:13:51 +05:30
playbook Become plugins (#50991) 2019-02-11 11:27:44 -06:00
plugins Raise AnsibleConnectionError on winrm connnection errors (#51744) 2019-02-13 14:55:55 -05:00
template Fix safe_eval on Python 3.8. 2019-02-13 11:54:03 -08:00
utils move extravars and option vars loading into VM (#51070) 2019-01-30 16:25:36 -05:00
vars Remove unused imports and variable in hostvars.py (#51609) 2019-02-07 11:05:39 -05:00
__init__.py
constants.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
context.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
release.py Codename: How Many More Times 2018-09-04 12:38:29 -04:00