mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 03:33:10 +00:00
Fixes #5631 Return a unique list of hosts when joining groups
This commit is contained in:
@@ -179,7 +179,7 @@ class Inventory(object):
|
||||
elif p.startswith("&"):
|
||||
hosts = [ h for h in hosts if h in that ]
|
||||
else:
|
||||
hosts.extend([ h for h in that if h not in hosts ])
|
||||
hosts.extend([ h for h in that if h.name not in [ y.name for y in hosts ] ])
|
||||
|
||||
return hosts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user