Skip to content

Commit

Permalink
configurators: extend ConfiguratorBase to include more common fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Dec 7, 2023
1 parent 09a54ab commit c5564c4
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions master/buildbot/configurators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,10 @@ def __init__(self):

def configure(self, config_dict):
self.config_dict = c = config_dict
if 'schedulers' not in c:
c['schedulers'] = []
self.schedulers = c['schedulers']
if 'protocols' not in c:
c['protocols'] = {}
self.protocols = c['protocols']
if 'builders' not in c:
c['builders'] = []
self.builders = c['builders']
if 'workers' not in c:
c['workers'] = []
self.workers = c['workers']
c.schedulers = c.setdefault('schedulers', [])
c.protocols = c.setdefault('protocols', [])
c.builders = c.setdefault('builders', [])
c.workers = c.setdefault('workers', [])
c.projects = c.setdefault('projects', [])
c.secretProviders = c.setdefault('secretProviders', [])
c.www = c.setdefault('www', {})

0 comments on commit c5564c4

Please sign in to comment.