mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Merge pull request #362 from jhoekx/uppercase-vars
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