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/collections
Rick Elrod cace616aab
Filter BLACKLIST_EXTS in PluginLoader (#69029)
Change:
Rather than hardcoding .pyo and .pyc, filter on all BLACKLIST_EXTS in
the non-legacy logic of PluginLoader (_find_fq_plugin). The two harcoded
extensions are part of BLACKLIST_EXTS already and this simply adds the
rest of the blacklisted extensions to the check.

In addition, check .endswith() instead of an exact match of the suffix,
like everywhere else that uses BLACKLIST_EXTS. This allows for
blacklisting, for example, emacs's backup files which can appear after
any extension, leading to things like `foo.py~`.

Test Plan:
Ran `ansible-playbook` against a collection where a `foo.py~` module was
getting executed instead of `foo.py` which also appeared in the same
directory. `foo.py~` is no longer executed.

Tickets:
Fixes #22268
Refs #27235

Signed-off-by: Rick Elrod <rick@elrod.me>
4 years ago
..
collection_root_sys/ansible_collections/testns Add missing boilerplate to collections test. (#60507) 5 years ago
collection_root_user/ansible_collections Filter BLACKLIST_EXTS in PluginLoader (#69029) 4 years ago
collections/ansible_collections fix using inventory and cache plugins in a collection (#56469) 4 years ago
custom_vars_plugins Support vars plugins in collections (#61078) 5 years ago
inventory_cache fix using inventory and cache plugins in a collection (#56469) 4 years ago
library Add missing boilerplate to collections test. (#60507) 5 years ago
roles Allow a collection role to call a standalone role by default (#69102) 4 years ago
a.statichost.yml Collection content loading (#52194) 5 years ago
aliases Address compat issue for collection loading on py26 (#68219) 4 years ago
cache.statichost.yml fix using inventory and cache plugins in a collection (#56469) 4 years ago
check_populated_inventory.yml fix using inventory and cache plugins in a collection (#56469) 4 years ago
includeme.yml module_utils fixes in collections (#55118) 5 years ago
invocation_tests.yml Action module xross coll (#68080) 4 years ago
posix.yml Allow a collection role to call a standalone role by default (#69102) 4 years ago
runme.sh fix using inventory and cache plugins in a collection (#56469) 4 years ago
vars_plugin_tests.sh Inventory CLI - Ignore settings for when vars plugins should run (#65073) 5 years ago
windows.yml Change collection PS util import pattern (#61307) 5 years ago