ansible/test
Martin Krizek a2af8432f3
Local vars should have highest precedence in AnsibleJ2Vars (#72830)
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
2021-01-26 11:37:56 +01:00
..
ansible_test
integration Local vars should have highest precedence in AnsibleJ2Vars (#72830) 2021-01-26 11:37:56 +01:00
lib/ansible_test Use a versioned pip bootstrapper in ansible-test. 2021-01-25 12:31:11 -08:00
sanity Document install_python_apt option of apt_repository (#72959) 2021-01-08 11:30:23 -06:00
support Various intentional tests (#72485) 2020-11-06 08:41:41 -06:00
units Let command always return stdout & stderr (#73004) 2021-01-22 08:40:53 +01:00
utils/shippable [devel] Azure Pipelines configuration. 2020-12-02 13:40:01 -08:00