feat: print which allowed origins are set for this buildbot server

Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
raito 2024-10-13 18:35:29 +02:00
parent ea08a7f4a1
commit 879e9cdcdf

View file

@ -996,9 +996,9 @@ class GerritNixConfigurator(ConfiguratorBase):
config_dict.setdefault("projects", [])
config_dict.setdefault("secretsProviders", [])
config_dict.setdefault("www", {
'allowed_origins': self.allowed_origins
})
print('Default allowed origins for this Buildbot server: {}'.format(', '.join(self.allowed_origins)))
config_dict["www"]["allowed_origins"] = self.allowed_origins
for item in worker_config_dict:
cores = item.get("cores", 0)