Commit 559e8903 by James Tanner

Fixes #5631 Return a unique list of hosts when joining groups

parent 02ce5af6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment