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/lib/ansible/cli
Matt Martz 2ae013667e
ansible-galaxy collection install retry improvements (#80180)
* clog frag

* Fix retries so that each explicit call to _call_galaxy is retried for the correct number of attempts. Fixes #80174

* Extend retry logic to common URL related connection errors. Fixes #80170

* Extend retries to downloading artifacts

* Extend param docs for change

* Rework the exception handling

* Don't be overly broad, reduce to TimeoutError, and BadStatusLine for now

* _download_file needs to raise AnsibleError.orig_exc

* Remove unused import

* Add IncompleteRead

* Add socket.timeout for py39

* Add 502 to retry codes

* Move http error code checking first

* Use itertools.tee to replay the backoff_iterator instead of using a callable

* Actually set a CLI default of 60s for timeout, to prevent implicit galaxy from using 10s as default from Request.open

* Import typing

* fix type hints

* Use http.HTTPStatus instead of int HTTP error codes where feasible

* Split exception handling

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>

* Add missing import

---------

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
1 year ago
..
arguments vault secrets file, keep context when symlink (#78734) 2 years ago
scripts Clean up unused imports in core (#79900) 1 year ago
__init__.py Add support for importlib.resources (#78915) 1 year ago
adhoc.py Add support for json in adhoc -a (#78114) 2 years ago
config.py ansible-config, only subvalues should use yaml shorthand (#79073) 2 years ago
console.py ansible-console - Fix arg name to match base class. (#78502) 2 years ago
doc.py Implement semantic markup support for Ansible documentation in ansible-doc. (#80242) 1 year ago
galaxy.py ansible-galaxy collection install retry improvements (#80180) 1 year ago
inventory.py ansible-inventory prevent duplicating host entries (#80059) 1 year ago
playbook.py Modernize install (#76021) 3 years ago
pull.py Update pull.py (#79387) 2 years ago
vault.py ansible-vault: add newline to the output of the 'encrypt_string' command (#79017) 2 years ago