mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Merge pull request #12765 from bcoca/lookup_inventory_hostname
implemented inventory_hostname lookup in v2
This commit is contained in:
commit
6d87bd405d
3 changed files with 44 additions and 22 deletions
|
@ -92,10 +92,10 @@ class TestInventory(unittest.TestCase):
|
|||
|
||||
for p in self.patterns:
|
||||
r = self.patterns[p]
|
||||
self.assertEqual(r, self.i._split_pattern(p))
|
||||
self.assertEqual(r, self.i.split_host_pattern(p))
|
||||
|
||||
for p, r in self.pattern_lists:
|
||||
self.assertEqual(r, self.i._split_pattern(p))
|
||||
self.assertEqual(r, self.i.split_host_pattern(p))
|
||||
|
||||
def test_ranges(self):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue