Fix case where no LBs need repair
Change-Id: Iafa87cbf64c5c1a2732c9a5e9d142bee8551653c
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user