mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Allow equal sign in single-line ini variables
This commit is contained in:
parent
22cfef33b4
commit
0658847ea6
3 changed files with 10 additions and 2 deletions
|
@ -55,7 +55,7 @@ class TestInventory(unittest.TestCase):
|
|||
'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2',
|
||||
'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5',
|
||||
'Hotep-a', 'Hotep-b', 'Hotep-c',
|
||||
'BastC', 'BastD', ]
|
||||
'BastC', 'BastD', 'neptun', ]
|
||||
|
||||
#####################################
|
||||
### Empty inventory format tests
|
||||
|
@ -401,6 +401,11 @@ class TestInventory(unittest.TestCase):
|
|||
'inventory_hostname_short': 'zeus',
|
||||
'group_names': ['greek', 'major-god']}
|
||||
|
||||
def test_allows_equals_sign_in_var(self):
|
||||
inventory = self.simple_inventory()
|
||||
auth = inventory.get_variables('neptun')['auth']
|
||||
assert auth == 'YWRtaW46YWRtaW4='
|
||||
|
||||
# test disabled as needs to be updated to model desired behavior
|
||||
#
|
||||
#def test_dir_inventory(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue