This website requires JavaScript.
Explore
Cloud
Chat
CI/CD
Help
Sign in
cmueller
/
ansible
Watch
1
Star
0
Fork
You've already forked ansible
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
e5bb7b1a16
ansible
/
test
/
integration
/
targets
/
template
/
templates
/
qux
2 lines
28 B
Text
Raw
Normal View
History
Unescape
Escape
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: https://github.com/pallets/jinja/commit/d67f0fd4cc2a4af08f51f4466150d49da7798729 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-10 00:50:53 +02:00
{% set wibble = "WIBBLE" %}
Reference in a new issue
Copy permalink