Fix issue with empty server name in Config.py of web UI

This commit is contained in:
Théophile Diot 2024-01-30 17:30:45 +01:00
parent bf9a4e291b
commit 92ff8000ce
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -36,6 +36,9 @@ class Config:
plugins_settings = self.get_plugins_settings()
for service in services_conf:
server_name = service["SERVER_NAME"].split(" ")[0]
if not server_name:
continue
for k in service:
key_without_server_name = k.replace(f"{server_name}_", "")
if plugins_settings[key_without_server_name]["context"] != "global" if key_without_server_name in plugins_settings else True: