fix: enhance condition checks in Configurator for variable handling

This commit is contained in:
Théophile Diot 2024-11-19 16:14:04 +01:00
parent d218f610c5
commit 9f737f9fec
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -186,7 +186,12 @@ class Configurator:
ret, err = self.__check_var(variable)
if ret:
config[variable] = value
elif (not first_run or not self.__variables.get("EXTERNAL_PLUGIN_URLS")) and (
elif (
not first_run
or variable in self.get_settings()
or variable in self.get_plugins_settings("core")
or not self.__variables.get("EXTERNAL_PLUGIN_URLS")
) and (
variable == "KUBERNETES_MODE"
or (
"CUSTOM_CONF" not in variable