mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Allow camelCase variables in varreplace.
This commit is contained in:
@@ -45,6 +45,16 @@ class TestUtils(unittest.TestCase):
|
||||
|
||||
assert res == 'hello world'
|
||||
|
||||
def test_varReplace_caps(self):
|
||||
template = 'hello $whoVar'
|
||||
vars = {
|
||||
'whoVar': 'world',
|
||||
}
|
||||
|
||||
res = ansible.utils.varReplace(template, vars)
|
||||
print res
|
||||
assert res == 'hello world'
|
||||
|
||||
def test_varReplace_middle(self):
|
||||
template = 'hello $who!'
|
||||
vars = {
|
||||
|
||||
Reference in New Issue
Block a user