community.general/lib/ansible/plugins
Toshio Kuratomi 0633f73faf Fix loader for filters (#37748)
* Fix loading of filter and test plugins

Filter and test plugins are different than other plugins in that they
can have many plugins in a single file.  Therefore they need to operate
a little differently.  They need to have all of the potential files
returned.  Then the caller takes care of passing those onto jinja2 in
order for jinja2 to make use of them.

This problem was (most recently) introduced with f921369445

This commit also restructures how we deduplicate plugins to take paths
into account.  If we want to start scoping which set of modules are
loaded (due to roles, for instance) we'll need to hang on to the path
information.

* add integration test for override

* Fix style checks for bcoca code

* Implement jinja2 plugin loader as a subclass

Having a subclass allows us to customize the overriding of jinja
plugins.  We can then move common parts of common code into the Loader.
2018-03-22 17:23:10 -04:00
..
action Fix edgeos_config: {backup: yes} (#37619) 2018-03-21 12:48:09 -04:00
cache add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
callback Restore skipped/failed in JSON callback, add custom facts (#37204) 2018-03-20 10:32:33 -04:00
cliconf Fix side-effect of flags being passed to ios get_config again (#37084) 2018-03-06 13:55:36 -05:00
connection Close & remove paramiko connection where appropriate (#37528) 2018-03-16 13:28:04 -04:00
filter Only template each hostvars var on-demand (fixes #33259) 2018-02-15 10:09:04 -05:00
inventory New generator inventory plugin (#37690) 2018-03-22 09:32:15 -04:00
lookup Fix csvfile traceback on Python3 (#37625) 2018-03-20 12:58:51 -07:00
netconf Raise error when trying to use older iosxr modules with netconf (#37423) 2018-03-15 12:49:35 -04:00
shell win: handle non string as an environment value (#37215) 2018-03-09 08:02:54 +10:00
strategy Re-use logic from StrategyBase._load_included_file in StrategyModule.run for free and linear (#36470) 2018-02-21 09:53:15 -06:00
terminal Lenovo license update (#36840) 2018-03-06 18:02:46 +00:00
test Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
vars Scan group_vars/host_vars in sorted order 2017-11-20 21:57:42 -05:00
__init__.py fixed up get_options in AnsiblePlugin to use the correct plugin name 2017-11-22 15:35:31 -05:00
loader.py Fix loader for filters (#37748) 2018-03-22 17:23:10 -04:00