mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-29 23:49:09 +00:00
Handle comment on inventory group line.
This commit is contained in:
parent
44279ce34f
commit
7ecb5fbc9c
3 changed files with 12 additions and 4 deletions
|
|
@ -300,6 +300,10 @@ class TestInventory(unittest.TestCase):
|
|||
expected_hosts=['1.host','2.host','A.host','B.host']
|
||||
assert sorted(hosts) == sorted(expected_hosts)
|
||||
|
||||
hosts2 = i.list_hosts('test2')
|
||||
expected_hosts2=['1.host','2.host','3.host']
|
||||
assert sorted(hosts2) == sorted(expected_hosts2)
|
||||
|
||||
###################################################
|
||||
### Inventory API tests
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
[test]
|
||||
[1:2].host
|
||||
[A:B].host
|
||||
|
||||
[test2] # comment
|
||||
[1:3].host
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue