Lookup plugin arguments need to be templated

This commit is contained in:
Daniel Hokka Zakrisson 2012-11-14 11:16:53 +01:00
commit e74ffd6764
2 changed files with 4 additions and 2 deletions

View file

@ -272,9 +272,9 @@ class TestUtils(unittest.TestCase):
assert res == u'hello oh great one'
def test_varReplace_include(self):
template = 'hello $FILE(world) $LOOKUP(file, world)'
template = 'hello $FILE(world) $LOOKUP(file, $filename)'
res = ansible.utils.template("test", template, {}, expand_lists=True)
res = ansible.utils.template("test", template, {'filename': 'world'}, expand_lists=True)
assert res == u'hello world world'