mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
return unique list of hosts
This commit is contained in:
parent
a1f516824e
commit
8d5f36a6c2
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ class Inventory(object):
|
||||||
hosts = [ h for h in hosts if h in self._restriction ]
|
hosts = [ h for h in hosts if h in self._restriction ]
|
||||||
|
|
||||||
HOSTS_PATTERNS_CACHE[pattern_hash] = hosts[:]
|
HOSTS_PATTERNS_CACHE[pattern_hash] = hosts[:]
|
||||||
return hosts
|
return list(set(hosts))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def split_host_pattern(cls, pattern):
|
def split_host_pattern(cls, pattern):
|
||||||
|
|
Loading…
Reference in a new issue