added pointer for hostgroup in service

This commit is contained in:
Rafael.Timmerberg 2013-06-19 23:48:19 +02:00
commit dd984fedae
4 changed files with 15 additions and 1 deletions

View file

@ -251,4 +251,8 @@ class FullConfigParser(ConfigParser):
id_get_func = lambda hostgroup: hostgroup.get_name()
self.replace_pointer(layouts, hostgroups, id_list_func, id_get_func)
for hg in hostgroups:
for service in hg.get_services():
service.set_hostgroup(hg)
return layouts