Update hostgroups.py

fixed name collision
This commit is contained in:
RafTim 2013-05-21 00:50:04 +02:00
commit ec37dcd437

View file

@ -51,7 +51,7 @@ def parseHostGroupList(hostgroups, hosts, members, periods, services):
print "warning: Service " + serviceName + " is not defined for Hostgroup " + hgname print "warning: Service " + serviceName + " is not defined for Hostgroup " + hgname
continue continue
service = service[0] service = service[0]
periods = filter(lambda p: p.name in servicePeriods, periods) hostGroupPeriods = filter(lambda p: p.name in servicePeriods, periods)
hostGroup.services.append(HostGroupService(service, periods)) hostGroup.services.append(HostGroupService(service, hostGroupPeriods))
parsedHostGroups.append(hostGroup) parsedHostGroups.append(hostGroup)
return parsedHostGroups return parsedHostGroups