community.general/lib/ansible/plugins
Marius Gedminas 54eae4a793 Check sys.modules before loading modules
Code for a plugin is usually loaded by a PluginLoader(), and henceforth
available from self._module_cache, which prevents duplicate loading.
However there are situations (e.g. where one action plugin imports code
from another one) where the plugin module might be already imported (and
resident in sys.modules), but not present in the PluginLoader's
_module_cache, which causes imp.load_source() to effectively reload the
module, overwriting global class declarations and causing subtle latent
bugs.

Fixes #13110.
Fixes #12979.
2015-11-10 17:57:43 +02:00
..
action set corrected force default 2015-11-06 19:06:58 -05:00
cache Cleaning up FIXMEs 2015-10-22 16:03:50 -04:00
callback Merge pull request #12867 from bcoca/callback_whitelist_tweak 2015-11-05 12:58:05 -05:00
connection Fxing typo 2015-10-26 17:01:30 -04:00
filter Add python3-compat boilerplate to all .py files in lib/ansible 2015-10-19 18:36:19 -07:00
inventory Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
lookup Fix first_found not finding files in roles (only templates) 2015-11-09 13:47:17 -08:00
shell switched to backticks to allow for non bourne shells to work 2015-10-29 12:45:53 -04:00
strategy Fix use of add_tqm_variables 2015-11-05 16:30:03 -05:00
test Add python3-compat boilerplate to all .py files in lib/ansible 2015-10-19 18:36:19 -07:00
vars Making the switch to v2 2015-05-03 21:47:26 -05:00
__init__.py Check sys.modules before loading modules 2015-11-10 17:57:43 +02:00