summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/templating/templates
diff options
context:
space:
mode:
authorFelix Fontein <felix@fontein.de>2022-10-04 15:44:00 +0200
committerGitHub <noreply@github.com>2022-10-04 15:44:00 +0200
commit6d0aeac1e166842f2833f4fb64c727cc7f818118 (patch)
treeae74e4ca8c90219fb877821ba3414d4548ccb354 /test/integration/targets/templating/templates
parentdocs: replace latin terms with english in the scenario_guides (#79008) (diff)
downloadansible-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.j21
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) }}