mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Handle '#' in var strings by splitting on ' #'
If someone has a " #" in a quoted var string, it will interpret that as a comment and refuse to load the inventory file due to an unbalanced quote. Noisy failure > unexpected behavior.
This commit is contained in:
@@ -302,4 +302,4 @@ class TestInventory(unittest.TestCase):
|
||||
assert vars == {'inventory_hostname': 'zeus',
|
||||
'inventory_hostname_short': 'zeus',
|
||||
'group_names': ['greek', 'major-god', 'ungrouped'],
|
||||
'var_a': '1'}
|
||||
'var_a': '1#2'}
|
||||
|
||||
Reference in New Issue
Block a user