just some coding style fixes and very small changes

This commit is contained in:
Johannes Findeisen 2013-05-24 03:25:50 +02:00
commit 0f82647c1a
5 changed files with 3310 additions and 4 deletions

View file

@ -31,6 +31,7 @@ class Config:
self.hosts,
self.members,
self.periods,
self.services, log)
self.services,
log)
#self.layouts = LayoutList(self.dict['layouts'], self.hostgroups)

View file

@ -58,7 +58,8 @@ def parseHostList(hosts, services, log):
found = False
#to a real iteration. just pick the right service
for service in services:
if service.name != servicename: continue
if service.name != servicename:
continue
#indicate we found a service
found = True
#check to see if we already regexed our service command

View file

@ -33,7 +33,8 @@ def parseMemberList(members, filters, log):
for filtername, replacement in member.filters.items():
found = False
for filt in filters:
if filt.name != filtername: continue
if filt.name != filtername:
continue
found = True
memberFilter = filt.clone()
memberFilter.command = re.sub('@member', replacement, filt.command)