Merge pull request #12765 from bcoca/lookup_inventory_hostname

implemented inventory_hostname lookup in v2
This commit is contained in:
Brian Coca 2015-10-16 15:05:23 -04:00
commit 6d87bd405d
3 changed files with 44 additions and 22 deletions

View file

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