mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Support «hosts: groupname[1:]» notation (~= 'the rest of the group')
This commit is contained in:
@@ -66,6 +66,9 @@ class TestInventory(unittest.TestCase):
|
||||
'a[2:3]': [('a', (2, 3)), ['c', 'd']],
|
||||
'a[-1]': [('a', (-1, None)), ['Z']],
|
||||
'a[-2]': [('a', (-2, None)), ['Y']],
|
||||
'a[48:]': [('a', (48, -1)), ['W', 'X', 'Y', 'Z']],
|
||||
'a[49:]': [('a', (49, -1)), ['X', 'Y', 'Z']],
|
||||
'a[1:]': [('a', (1, -1)), list(string.ascii_letters[1:])],
|
||||
}
|
||||
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user