mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Replace lists with a comma-separated join
This commit is contained in:
@@ -309,6 +309,8 @@ def varReplace(raw, vars, depth=0):
|
||||
|
||||
try:
|
||||
replacement = _varLookup(m['path'], vars, depth)
|
||||
if isinstance(replacement, (list, tuple)):
|
||||
replacement = ",".join(replacement)
|
||||
if isinstance(replacement, (str, unicode)):
|
||||
replacement = varReplace(replacement, vars, depth=depth + 1)
|
||||
except VarNotFoundException:
|
||||
|
||||
Reference in New Issue
Block a user