[stable-2.19] ensure undefined marker access on Jinja getattr->getitem fallback (#85688) (#85691)

(cherry picked from commit 3518d48146)

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
This commit is contained in:
Matt Clay
2025-08-18 20:41:14 +00:00
committed by GitHub
co-authored by Matt Davis
parent 6404fdce45
commit a00261b0ec
3 changed files with 20 additions and 2 deletions
@@ -0,0 +1,4 @@
bugfixes:
- templating - Undefined marker values sourced from the Jinja ``getattr->getitem`` fallback are now accessed correctly,
raising AnsibleUndefinedVariable for user plugins that do not understand markers.
Previously, these values were erroneously returned to user plugin code that had not opted in to marker acceptance.