mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed append to add
This commit is contained in:
parent
8e2f0b3f2c
commit
699f344e17
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ class Inventory(object):
|
||||||
for p in patterns:
|
for p in patterns:
|
||||||
# avoid resolving a pattern that is a plain host
|
# avoid resolving a pattern that is a plain host
|
||||||
if p in self._hosts_cache:
|
if p in self._hosts_cache:
|
||||||
hosts.append(self.get_host(p))
|
hosts.add(self.get_host(p))
|
||||||
else:
|
else:
|
||||||
that = self._match_one_pattern(p)
|
that = self._match_one_pattern(p)
|
||||||
if p.startswith("!"):
|
if p.startswith("!"):
|
||||||
|
|
Loading…
Reference in a new issue