Added missing extension file and tests. Also modified the get_host_list() docstring to be more accurate about the return value.

This commit is contained in:
Ed Leafe
2011-07-04 15:41:37 +00:00
parent b80bd290eb
commit dd508248b4
2 changed files with 104 additions and 2 deletions

View File

@@ -116,8 +116,9 @@ class ZoneManager(object):
return [zone.to_dict() for zone in self.zone_states.values()]
def get_host_list(self):
"""Returns a list of all the host names that the Zone Manager
knows about.
"""Returns a list of dicts for each host that the Zone Manager
knows about. Each dict contains the host_name and the service
for that host.
"""
all_hosts = self.service_states.keys()
ret = []