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 17d52c8d64
Move undefined check from concat to finalize (#78165)
* Move undefined check from concat to finalize

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

* Fix sanity

* ...

* sigh
2 years ago
..
custom_tasks
files
meta
role_filter
tasks template override colon bugfixes (#77495) 3 years ago
templates
vars
6653.yml
72262.yml
72615.yml
aliases
ansible_managed.cfg
ansible_managed.yml
corner_cases.yml
custom_template.yml
filter_plugins.yml
in_template_overrides.j2
in_template_overrides.yml
lazy_eval.yml Fix lazy eval version in integration tests 3 years ago
runme.sh Move undefined check from concat to finalize (#78165) 2 years ago
template.yml
undefined_in_import-import.j2 Move undefined check from concat to finalize (#78165) 2 years ago
undefined_in_import.j2 Move undefined check from concat to finalize (#78165) 2 years ago
undefined_in_import.yml Move undefined check from concat to finalize (#78165) 2 years ago
undefined_var_info.yml
unsafe.yml Prevent losing unsafe from lookups (#77609) 3 years ago
unused_vars_include.yml