Browse Source

connections: always register the scheduler

The Driver base class implements a noop registerScheduler function
that can be called un-conditionally.

Change-Id: I570f8b2f261bb07d81f99c216c19575ef8cc59ab
changes/44/637444/2
Tristan Cacqueray 2 years ago
parent
commit
54d66fd999
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      zuul/lib/connections.py

+ 1
- 2
zuul/lib/connections.py View File

@ -62,8 +62,7 @@ class ConnectionRegistry(object):
def registerScheduler(self, sched, load=True):
for driver_name, driver in self.drivers.items():
if hasattr(driver, 'registerScheduler'):
driver.registerScheduler(sched)
driver.registerScheduler(sched)
for connection_name, connection in self.connections.items():
connection.registerScheduler(sched)
if load:


Loading…
Cancel
Save