mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 09:24:01 -07: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:
parent
acf2c23808
commit
0837a29e51
3 changed files with 7 additions and 7 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue