You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/template
Martin Krizek 6468bb0cb6
Move undefined check from concat to finalize (#78165) (#78179)
In the classic Jinja2's Environment str() is called on the return value of the
finalize method to potentially trigger the undefined error. That is not
the case in NativeEnvironment where string conversion of the return value is
not desired. We workaround that by checking for Undefined in all of our concat
functions. It seems simpler to do it earlier in the finalize method(s) instead.
As a side-effect it fixes an undefined variable detection in imported templates.

Fixes #78156

ci_complete

(cherry picked from commit 17d52c8d64)
4 years ago
..
custom_tasks Clean up various integration tests. (#60613) 6 years ago
files Heisen jinja2_native (#75587) 4 years ago
meta test - add setup target that creates the nobody user (#52750) 7 years ago
role_filter More boilerplate fixes. (#70224) 6 years ago
tasks Remove unused task from template integration test. 4 years ago
templates ansible_concat: return strings only unless eval (#76634) 4 years ago
vars
6653.yml Local vars should have highest precedence in AnsibleJ2Vars (#72830) 5 years ago
72262.yml Local vars should have highest precedence in AnsibleJ2Vars (#72830) 5 years ago
72615.yml Require Jinja2 3.0.0 (#75881) 4 years ago
aliases ansible-test - split controller/target testing (#75605) 4 years ago
ansible_managed.cfg
ansible_managed.yml Clean up various integration tests. (#60613) 6 years ago
corner_cases.yml Heisen jinja2_native (#75587) 4 years ago
custom_template.yml dataloader: check exact value of dir (#52021) 7 years ago
filter_plugins.yml Revert "Speed up VariableManager by preserving Templar state. (#45572)" (#59280) 7 years ago
in_template_overrides.j2 Ensure Jinja2 template header overrides are used (#75306) 4 years ago
in_template_overrides.yml Ensure Jinja2 template header overrides are used (#75306) 4 years ago
runme.sh Move undefined check from concat to finalize (#78165) (#78179) 4 years ago
template.yml
undefined_in_import-import.j2 Move undefined check from concat to finalize (#78165) (#78179) 4 years ago
undefined_in_import.j2 Move undefined check from concat to finalize (#78165) (#78179) 4 years ago
undefined_in_import.yml Move undefined check from concat to finalize (#78165) (#78179) 4 years ago
undefined_var_info.yml Provide more information in AnsibleUndefinedVariable (#71666) 5 years ago
unsafe.yml Prevent losing unsafe from lookups (#77609) (#77650) 4 years ago
unused_vars_include.yml Prevent templating unused variables for {%include%} (#68749) 6 years ago