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.
cace616aab
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> |
5 years ago | |
---|---|---|
.. | ||
collection_root_sys/ansible_collections/testns | 5 years ago | |
collection_root_user/ansible_collections | 5 years ago | |
collections/ansible_collections | 5 years ago | |
custom_vars_plugins | 5 years ago | |
inventory_cache | 5 years ago | |
library | 5 years ago | |
roles | 5 years ago | |
a.statichost.yml | ||
aliases | 5 years ago | |
cache.statichost.yml | 5 years ago | |
check_populated_inventory.yml | 5 years ago | |
includeme.yml | ||
invocation_tests.yml | 5 years ago | |
posix.yml | 5 years ago | |
runme.sh | 5 years ago | |
vars_plugin_tests.sh | 5 years ago | |
windows.yml | 5 years ago |