Fix case where no LBs need repair

Change-Id: Iafa87cbf64c5c1a2732c9a5e9d142bee8551653c
This commit is contained in:
Andrew Hutchings
2013-04-18 22:22:07 +01:00
parent 5f13115dfd
commit e66ede3d9a

View File

@@ -112,6 +112,9 @@ class Sched(object):
if api.is_online():
lb_list = api.get_repair_list()
tested = len(lb_list)
if tested == 0:
self.logger.info('No LBs need repair')
return (0, 0)
for lb in lb_list:
node_list.append(lb['name'])
gearman = GearJobs(self.logger, self.args)