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 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
..
ansible_test ansible-test - Move code from _data to _util. (#75495) 4 years ago
integration Move undefined check from concat to finalize (#78165) (#78179) 4 years ago
lib/ansible_test [stable-2.13] ansible-test - Improve pip bootstrap download. 4 years ago
sanity ansible-galaxy - support resolvelib versions >= 0.5.3, < 0.9.0 (#77649) (#78008) 4 years ago
support Remove collections compat from controller code. 4 years ago
units Make unit test for missing git executable more generic (#78173) (#78174) 4 years ago
utils/shippable Fix Windows CI scripts. 4 years ago