mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-19 23:31:27 +00:00
Our custom encoder for the to_json filter was simply returning the object if it was not a HostVars object, leading in some cases to a TypeError when the data contained an undefined variable. This lead to an odd error message being propagated up, so we now properly catch this as an undefined variable error. Fixes #15610