Revert "fix the get_hosts() error in get_groups returning a dict not a list of group objects"

This reverts commit f41fb90d78.
This commit is contained in:
Michael DeHaan 2012-05-07 21:46:36 -04:00
parent a54d9f66e6
commit 893bf90627

View file

@ -73,7 +73,7 @@ class Inventory(object):
hosts = {}
patterns = pattern.replace(";",":").split(":")
for (groupname, group) in self.get_groups().items():
for group in self.get_groups():
for host in group.get_hosts():
for pat in patterns:
if group.name == pat or pat == 'all' or self._match(host.name, pat):