mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-11 10:54:02 -07:00
Lookup plugin arguments need to be templated
This commit is contained in:
parent
44af1408ee
commit
e74ffd6764
2 changed files with 4 additions and 2 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue