Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/ansible_compat/runtime.py: Fix collection loading (#223)
* src/ansible_compat/runtime.py: Fix collection loading - Ensure the cache dir is added to the collection loader path, in order to allow linting a collection role against a module this collection is providing - Add missing default collection path to the loader for ansible version prior 2.15.0.dev0, as done by ansible's _configure_collection_loader(). The only remaining difference is the missing handling of COLLECTIONS_SCAN_SYS_PATH. See ansible/ansible-lint#2969 for reference. Signed-off-by: Arnaud Patard <apatard@hupstream.com> * Collection path is a list --------- Signed-off-by: Arnaud Patard <apatard@hupstream.com> Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
- Loading branch information