mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Default listify to converting bare variables again
Since we explicitly set convert_bare=False in the template lookup code, but still want individual looks that call listify directly to convert bare variables if needed.
This commit is contained in:
@@ -26,7 +26,7 @@ from ansible.template.safe_eval import safe_eval
|
|||||||
__all__ = ['listify_lookup_plugin_terms']
|
__all__ = ['listify_lookup_plugin_terms']
|
||||||
|
|
||||||
#FIXME: probably just move this into lookup plugin base class
|
#FIXME: probably just move this into lookup plugin base class
|
||||||
def listify_lookup_plugin_terms(terms, templar, loader, fail_on_undefined=False, convert_bare=False):
|
def listify_lookup_plugin_terms(terms, templar, loader, fail_on_undefined=False, convert_bare=True):
|
||||||
|
|
||||||
if isinstance(terms, basestring):
|
if isinstance(terms, basestring):
|
||||||
stripped = terms.strip()
|
stripped = terms.strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user