even more dummy code, python fools me!!!

This commit is contained in:
Rafael.Timmerberg 2013-06-20 01:05:09 +02:00
commit c6a8e1fbd0
2 changed files with 16 additions and 9 deletions

View file

@ -62,9 +62,16 @@ def main():
jobs = []
for layout in layouts:
for i in range(len(layout.get_hostgroups())):
hg = layout.get_hostgroups()[i]
for serv in hg.get_services():
for service in serv:
for period in service.get_periods():
pass
if layout.is_enabled():
for hg in layout.get_hostgroups():
for sr in hg.get_services():
for hostgroup in layout.get_hostgroups():
for sr in hostgroup.get_services():
if not isinstance(sr, list):
sr = sr.get_hostgroup().get_services()
for s in sr: