Merge pull request #3041 from sergevanginderachter/performance-groups-list

performance optimization in inventory.groups_list()
pull/3046/head
Michael DeHaan 12 years ago
commit dbfad567bc

@ -233,6 +233,7 @@ class Inventory(object):
groups[g.name] = [h.name for h in g.get_hosts()]
ancestors = g.get_ancestors()
for a in ancestors:
if a.name not in groups:
groups[a.name] = [h.name for h in a.get_hosts()]
self._groups_list = groups
return self._groups_list

Loading…
Cancel
Save