mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fix inventory for test_dir_inventory
It came up that fixing this unit test may relate to another ticket that is open. This work allows us to uncomment this unit test by fixing how we pars variables allowing a quoted variable to contain a '#'. Work also went into cleaning up some of the test data to clarify what was working. Lastly work went into cleaning up formatting so that the code is easily read.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
zeus var_a=2
|
||||
zeus var_a=0
|
||||
morpheus
|
||||
thor
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
[titan]
|
||||
cronus var_a="a#b" var_b="b#c" var_c="c#d" # Is this overkill?
|
||||
|
||||
[major-god] # group with inline comments
|
||||
zeus var_a="1#2" # host with inline comments and "#" in the var string
|
||||
zeus var_a="2#3" # host with inline comments and "#" in the var string
|
||||
# A comment
|
||||
thor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user