ansible/test/integration
Martin Krizek 2c8c02c816
Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73370)
Ability to add local variables into AnsibleJ2Vars was added in
18a9eff11f to fix #6653. Local variables
are added using ``AnsibleJ2Vars.add_locals()`` method when creating a
new context - typically when including/importing a template with
context. For that use case local template variables created using
``set`` should override variables from higher contexts - either from the
play or any parent template, or both; Jinja behaves the same way.

Also removes AnsibleJ2Vars.extras instance variable which is not used.

Also adds missing test for #6653.

Fixes #72262
Fixes #72615

ci_complete

(cherry picked from commit a2af8432f3)
2021-02-07 01:30:47 -06:00
..
targets Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73370) 2021-02-07 01:30:47 -06:00
network-integration.cfg Update network integration auth timeout (#71057) (#71238) 2020-08-27 12:55:04 -05:00
network-integration.requirements.txt Update ansible-test network test provisioning. (#68220) 2020-03-23 11:14:21 -05:00