1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Allow $foo and {{ bar }} to be used on the same line in playbooks.

This commit is contained in:
Michael DeHaan 2013-04-10 16:40:49 -04:00
parent 29209c4913
commit 998230a84a

View file

@ -234,8 +234,7 @@ def template(basedir, varname, vars, lookup_fatal=True, depth=0, expand_lists=Tr
if isinstance(varname, basestring):
if '{{' in varname or '{%' in varname:
res = template_from_string(basedir, varname, vars)
return res
varname = template_from_string(basedir, varname, vars)
m = _varFind(basedir, varname, vars, lookup_fatal, depth, expand_lists)
if not m:
return varname