Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the extract filter return Undefined on KeyError
groups['x']|map('extract', hostvars, 'somevar') would break if any host didn't have 'somevar' set. With this change, it will return Undefined instead. This change permits |map('extract', …)|map('default', 42) to set a default value in such cases.
- Loading branch information