mirror of https://github.com/ansible/ansible.git
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.pull/15928/merge
parent
2b3a22fdba
commit
3ab9dddb3a
Loading…
Reference in New Issue