return unique list of hosts

pull/13420/merge
Brian Coca 9 years ago
parent a1f516824e
commit 8d5f36a6c2

@ -196,7 +196,7 @@ class Inventory(object):
hosts = [ h for h in hosts if h in self._restriction ]
HOSTS_PATTERNS_CACHE[pattern_hash] = hosts[:]
return hosts
return list(set(hosts))
@classmethod
def split_host_pattern(cls, pattern):

Loading…
Cancel
Save