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:
Michael DeHaan 2012-10-17 19:35:12 -04:00
commit 0837a29e51
3 changed files with 7 additions and 7 deletions

View file

@ -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):