From ec37dcd4374703b5ebf53031304bda5cd320150f Mon Sep 17 00:00:00 2001 From: RafTim Date: Tue, 21 May 2013 00:50:04 +0200 Subject: [PATCH] Update hostgroups.py fixed name collision --- lib/config/hostgroups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/hostgroups.py b/lib/config/hostgroups.py index f77d72c..93367ad 100644 --- a/lib/config/hostgroups.py +++ b/lib/config/hostgroups.py @@ -51,7 +51,7 @@ def parseHostGroupList(hostgroups, hosts, members, periods, services): print "warning: Service " + serviceName + " is not defined for Hostgroup " + hgname continue service = service[0] - periods = filter(lambda p: p.name in servicePeriods, periods) - hostGroup.services.append(HostGroupService(service, periods)) + hostGroupPeriods = filter(lambda p: p.name in servicePeriods, periods) + hostGroup.services.append(HostGroupService(service, hostGroupPeriods)) parsedHostGroups.append(hostGroup) return parsedHostGroups