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
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
..
ansible_test ansible-test - Move code from _data to _util. (#75495) 3 years ago
integration Move undefined check from concat to finalize (#78165) 2 years ago
lib/ansible_test ansible-test - Improve pip bootstrap download. 2 years ago
sanity Refactor ansible-test integration tests. (#78168) 2 years ago
support Remove incidental_inventory_foreman test. 2 years ago
units Make unit test for missing git executable more generic (#78173) 2 years ago
utils/shippable Remove incidental_inventory_foreman test. 2 years ago