mirror of https://github.com/ansible/ansible.git
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.
* 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> |
8 months ago | |
|---|---|---|
| .. | ||
| _internal | 8 months ago | |
| _vendor | 2 years ago | |
| ansible_test | 8 months ago | |
| cli | 10 months ago | |
| config | 9 months ago | |
| errors | 8 months ago | |
| executor | 8 months ago | |
| galaxy | 10 months ago | |
| inventory | 10 months ago | |
| inventory_test_data/group_vars | 11 years ago | |
| mock | 8 months ago | |
| module_utils | 8 months ago | |
| modules | 10 months ago | |
| parsing | 8 months ago | |
| playbook | 9 months ago | |
| plugins | 8 months ago | |
| regex | 2 years ago | |
| template | 8 months ago | |
| test_utils | 8 months ago | |
| utils | 8 months ago | |
| vars | 10 months ago | |
| __init__.py | 9 years ago | |
| conftest.py | 8 months ago | |
| controller_only_conftest.py | 9 months ago | |
| requirements.txt | 10 months ago | |
| test_context.py | 2 years ago | |
| test_no_tty.py | 2 years ago | |