You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/prepare_http_tests
Martin Krizek eb29a662f6 Exceptions clean up (#85176)
* replace usage of `IOError` as it is an alias to `OSError`
* replace usage of `socket.error` as it is an alias to `OSError`
* use subclasses of `OSError` rather than inspecting `errno`s
* utilize `exist_ok` parameter of `os.makedirs` rather than ignoring
  `FileExistsError`

Make the following changes to the exception handling this patch already
updates to be consistent with the new code:
* use `ex` as a name for exception being handled
* use `from ex` when re-raising exception for additional context
* use f-strings and `!r` for quoting
* pass exceptions to the `exception` parameter of `fail_json`
* use `display.error_as_warning` rather than passing stringified
  exception into `display.warning`

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 600c1e67b4)
6 months ago
..
defaults add self-signed https endpoint for ansible-test (#73463) 5 years ago
files Add FreeBSD 13.3 and 14.0 to ansible-test (#82530) 2 years ago
handlers Add support for GSSAPI/Kerberos to urls.py (#72113) 5 years ago
library Exceptions clean up (#85176) 6 months ago
meta Add support for GSSAPI/Kerberos to urls.py (#72113) 5 years ago
tasks ansible-test - Add RHEL 10.0 remote (#85189) 6 months ago
templates Add support for GSSAPI/Kerberos to urls.py (#72113) 5 years ago
vars ansible-test - Update http-test-container (#83272) 2 years ago