community.general/lib/ansible/plugins
Virgil Dupras bf48383610 Fix regression in jinja2 include search path (#18617)
* Fix regression in jinja2 include search path

Since commit 3c39bb5, the 'ansible_search_path' variable is used to set
jinja2's search path for {% include %} directives. However, this path is
the the proper one because our templates live in 'templates' subdirs in
our search path.

This is a regression because previously, our include search path would
include the dirname of the currently interpreted file, which worked most
of the time.

fixes #18526

* Fix template lookup search path

Improve fix in commit c96c853 so that the search path contain both
template-suffixed paths as well as original paths.

ref PR #18617

* Add integration test for template lookups

Tests regression at #18526

This test fails on current devel branch and succeeds on PR #18617
2016-11-29 16:23:06 -05:00
..
action unified boolean function 2016-11-29 12:34:30 -05:00
cache Remove direct calls to print and cleanup imports 2016-11-07 17:12:36 -05:00
callback import reduce from six label:python3 (#18561) 2016-11-22 11:22:24 -08:00
connection unified boolean function 2016-11-29 12:34:30 -05:00
filter random filter: added optional 'seed' parameter 2016-11-17 15:02:06 -08:00
lookup Fix regression in jinja2 include search path (#18617) 2016-11-29 16:23:06 -05:00
shell Mcsalgado's change to use shlex.quote instead of pipes.quote (#18534) 2016-11-17 13:18:29 -08:00
strategy Fix 'cancled' misspelling in --step debug 2016-11-29 09:48:19 -05:00
terminal adds two new plugins that use ansible-connection for persistence (#18572) 2016-11-28 12:49:40 -05:00
test restored 'results' filters 2016-10-13 13:21:40 -04:00
vars Making the switch to v2 2015-05-03 21:47:26 -05:00
__init__.py adds two new plugins that use ansible-connection for persistence (#18572) 2016-11-28 12:49:40 -05:00