diff options
author | Felix Fontein <felix@fontein.de> | 2022-10-04 15:44:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 15:44:00 +0200 |
commit | 6d0aeac1e166842f2833f4fb64c727cc7f818118 (patch) | |
tree | ae74e4ca8c90219fb877821ba3414d4548ccb354 /test/integration/targets/templating/templates | |
parent | docs: replace latin terms with english in the scenario_guides (#79008) (diff) | |
download | ansible-6d0aeac1e166842f2833f4fb64c727cc7f818118.tar.xz ansible-6d0aeac1e166842f2833f4fb64c727cc7f818118.zip |
Do not crash templating when filter/test name is not a valid Ansible plugin name (#78913)
* Do not crash templating when filter/test name is not a valid Ansible plugin name.
* Store and re-raise KeyError if there was one.
Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
Diffstat (limited to 'test/integration/targets/templating/templates')
-rw-r--r-- | test/integration/targets/templating/templates/invalid_test_name.j2 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/integration/targets/templating/templates/invalid_test_name.j2 b/test/integration/targets/templating/templates/invalid_test_name.j2 new file mode 100644 index 0000000000..98b836f14f --- /dev/null +++ b/test/integration/targets/templating/templates/invalid_test_name.j2 @@ -0,0 +1 @@ +{{ [{"failed": false}] | selectattr("failed", "asdf ", true) }} |