mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Don't run lookup plugins while trying to simplify the input datastructure.
This commit is contained in:
parent
94567b21e9
commit
73dbab702f
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ def _fix_ds(basedir, vars, original, depth=0):
|
||||||
return dict([ (k, fix_ds(basedir, v, original, depth=depth+1)) for (k,v) in vars.iteritems() ])
|
return dict([ (k, fix_ds(basedir, v, original, depth=depth+1)) for (k,v) in vars.iteritems() ])
|
||||||
if isinstance(vars, (dict, tuple)):
|
if isinstance(vars, (dict, tuple)):
|
||||||
return [ fix_ds(basedir, x,original, depth=depth+1) for x in vars ]
|
return [ fix_ds(basedir, x,original, depth=depth+1) for x in vars ]
|
||||||
if isinstance(vars, basestring) and "{{" in vars and not "|" in vars:
|
if isinstance(vars, basestring) and "{{" in vars and not "|" in vars and not "lookup(" in vars:
|
||||||
return lightweight_var_template(basedir, vars, original)
|
return lightweight_var_template(basedir, vars, original)
|
||||||
return vars
|
return vars
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue