Fixes #5631 Return a unique list of hosts when joining groups
This commit is contained in:
parent
02ce5af6df
commit
559e89036b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue