fixed append to add

This commit is contained in:
Brian Coca 2015-11-05 15:24:20 -05:00
parent 8e2f0b3f2c
commit 699f344e17

View file

@ -257,7 +257,7 @@ class Inventory(object):
for p in patterns:
# avoid resolving a pattern that is a plain host
if p in self._hosts_cache:
hosts.append(self.get_host(p))
hosts.add(self.get_host(p))
else:
that = self._match_one_pattern(p)
if p.startswith("!"):