community.general/lib/ansible
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
..
cli made ansibledoc more consistent with term sizes, it now uses display class column calculations 2015-11-05 17:42:14 -05:00
compat 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
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Clean up a few more pyflakes warnings 2015-10-19 11:20:21 -07:00
executor New parameter for template method. 2015-11-10 07:19:19 +01:00
galaxy Add python3-compat boilerplate to all .py files in lib/ansible 2015-10-19 18:36:19 -07:00
inventory Fixing up host pattern caching to avoid bugs 2015-11-09 20:55:13 -05:00
module_utils made get_file_lines rely on get_file_content which deals with many error 2015-11-10 13:22:45 -08:00
modules Update submodule refs 2015-11-09 13:48:34 -08:00
new_inventory fix some warning of undefined name. 2015-10-09 12:43:42 +08:00
parsing Fix typo 2015-11-03 10:57:48 +05:30
playbook Merge pull request #13072 from Yannig/devel_cache_optimization 2015-11-09 14:54:06 -05:00
plugins Check sys.modules before loading modules 2015-11-10 17:57:43 +02:00
template New parameter for template method. 2015-11-10 07:19:19 +01:00
utils Cleaning up FIXMEs 2015-10-22 16:03:50 -04:00
vars Correct logic around determining environment variable existence 2015-11-09 21:04:24 -05:00
__init__.py Add python3-compat boilerplate to all .py files in lib/ansible 2015-10-19 18:36:19 -07:00
constants.py Add variable compression option 2015-11-05 16:22:37 -05:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00