mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 14:01:42 -07:00
remove bare vars and undefined from lookup lists (#17647)
https://docs.ansible.com/ansible/porting_guide_2.0.html#deprecated
This commit is contained in:
parent
3550f73837
commit
cf7822e201
2 changed files with 2 additions and 4 deletions
|
@ -28,10 +28,9 @@ from ansible.template.safe_eval import safe_eval
|
|||
|
||||
__all__ = ['listify_lookup_plugin_terms']
|
||||
|
||||
def listify_lookup_plugin_terms(terms, templar, loader, fail_on_undefined=False, convert_bare=True):
|
||||
def listify_lookup_plugin_terms(terms, templar, loader, fail_on_undefined=True, convert_bare=False):
|
||||
|
||||
if isinstance(terms, string_types):
|
||||
# TODO: warn/deprecation on bare vars in with_ so we can eventually remove fail on undefined override
|
||||
terms = templar.template(terms.strip(), convert_bare=convert_bare, fail_on_undefined=fail_on_undefined)
|
||||
else:
|
||||
terms = templar.template(terms, fail_on_undefined=fail_on_undefined)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue