mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +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:
@@ -1,5 +1,5 @@
|
||||
[major-god] # group with inline comments
|
||||
zeus var_a=1 # host with inline comments
|
||||
zeus var_a="1#2" # host with inline comments and "#" in the var string
|
||||
# A comment
|
||||
thor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user