community.general/lib/ansible
Zac Medico 501fc7a248 template: fix KeyError: 'undefined variable: 0 (#27972)
* template: fix KeyError: 'undefined variable: 0

For compatibility with the Context.get_all() implementation
in jinja 2.9, make AnsibleJ2Vars implement collections.Mapping.
Also, make AnsibleJ2Template.newcontext() handle dict type
for the 'vars' parameter.

See: d67f0fd4cc
Fixes: https://github.com/ansible/ansible/issues/20494

* add units/template/test_vars

* intg tests for jinja-2.9 issues like 20494

test cases here are based on
https://github.com/ansible/ansible/issues/20494#issue-202108318
2017-08-09 18:50:53 -04:00
..
cli pylint fixes for vault related code (#27721) 2017-08-08 16:10:03 -04:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config Add back support for vault_password_file config var (#27597) 2017-08-01 18:07:33 -04:00
errors correct, cleanup & simplify dwim stack (#25956) 2017-07-03 15:27:53 -04:00
executor Fix for ansiballz filenames conflicting with python stdlib modules 2017-08-01 15:20:35 -07:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory ensure all groups inherit from 'all' 2017-07-13 18:38:39 -04:00
module_utils Delete unused module_utils/cloudengine.py (#25054) 2017-08-09 12:32:45 -04:00
modules Add a sensu_client module 2017-08-09 16:36:39 -04:00
parsing pylint fixes for vault related code (#27721) 2017-08-08 16:10:03 -04:00
playbook helpers.py: Fixes #27334 include empty task file within a 'block' dis… (#27811) 2017-08-08 09:48:39 -04:00
plugins ISSUE 25470 - update patch from review details 2017-08-09 13:38:16 -07:00
template template: fix KeyError: 'undefined variable: 0 (#27972) 2017-08-09 18:50:53 -04:00
utils Delete unused module_utils/cloudengine.py (#25054) 2017-08-09 12:32:45 -04:00
vars Remove wildcard imports 2017-07-28 22:10:17 -07:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Fix undefined variables, basestring usage, and some associated python3 issues 2017-07-25 15:58:23 -07:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00