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:
Pol Llovet
2013-05-31 12:34:45 -06:00
parent 4a5b567f0c
commit 4432c01ceb
3 changed files with 4 additions and 4 deletions

View File

@@ -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