mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Only expand lists in templating inside of module action lines, to avoid breaking usage with with_items and "in" statements, etc
This commit is contained in:
@@ -221,7 +221,7 @@ class TestUtils(unittest.TestCase):
|
||||
}
|
||||
|
||||
template = 'yum pkg=${list} state=installed'
|
||||
res = ansible.utils.varReplace(template, vars)
|
||||
res = ansible.utils.varReplace(template, vars, expand_lists=True)
|
||||
assert res == 'yum pkg=foo,bar,baz state=installed'
|
||||
|
||||
def test_template_varReplace_iterated(self):
|
||||
|
||||
Reference in New Issue
Block a user