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 56d142350d
Add support for importlib.resources (#78915)
* Add support for importlib.resources

* Remove the importlib.resources imports

* return the correct data

* Some code comments, and re-order for consistency

* Disallow traversing packages below an individual collection

* Add a traversable class for namespaces

* Re-use variable

* Utilize itertools.chain.from_iterable

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

* Simplify logic to check for packages from ansible loaders

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

* Just a generator expression, instead of a generator

* docstrings

* Add comment about find_spec for our namespaces

* Add some initial unit tests for importlib.resources

* normalize

* Utilize importlib.resources for listing collections

* collections_path is already in config, just use config

* install uses a different default for collections_path

* Remove unused import

* Remove duplicate __truediv__

* Bring back TraversableResources

* Apply some small suggestions from code review

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>

* Remove cross contamination between plugin loader code and CLI code

* Remove unused import

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
1 year ago
..
arguments vault secrets file, keep context when symlink (#78734) 2 years ago
scripts Add support for importlib.resources (#78915) 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 ansible-doc and validate-modules: remove underscore deprecation handling for collections (#79362) 2 years ago
galaxy.py Add support for importlib.resources (#78915) 1 year ago
inventory.py Removed sorting to preserve original order (#74839) 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