From a8fd59cc86d6f1236bac67f94a70982971f7f3ea Mon Sep 17 00:00:00 2001 From: Jeroen Dekkers Date: Wed, 20 Sep 2023 09:28:08 +0200 Subject: [PATCH] Fix backwards compatibility settings (1.12) (#1807) Co-authored-by: Jan Klopper --- bytes/bytes/config.py | 3 +++ mula/scheduler/config/settings.py | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bytes/bytes/config.py b/bytes/bytes/config.py index 2072ac1f045..d645f311412 100644 --- a/bytes/bytes/config.py +++ b/bytes/bytes/config.py @@ -50,6 +50,9 @@ def __call__(self, settings: BaseSettings) -> Dict[str, Any]: if "rfc3161_provider" in d and not d["rfc3161_provider"]: del d["rfc3161_provider"] + if "rfc3161_cert_file" in d and not d["rfc3161_cert_file"]: + del d["rfc3161_cert_file"] + return d diff --git a/mula/scheduler/config/settings.py b/mula/scheduler/config/settings.py index 55df9dd6e62..9c960acdda2 100644 --- a/mula/scheduler/config/settings.py +++ b/mula/scheduler/config/settings.py @@ -35,9 +35,7 @@ def __call__(self) -> Dict[str, Any]: if new_name not in env_vars and old_name in env_vars: logging.warning("Deprecation: %s is deprecated, use %s instead", old_name.upper(), new_name.upper()) if new_name == "queue_uri": - d["host_mutation"] = env_vars[old_name] - d["host_raw_data"] = env_vars[old_name] - d["host_normalizer_meta"] = env_vars[old_name] + d["QUEUE_URI"] = env_vars[old_name] else: d[new_name[len(env_prefix) :]] = env_vars[old_name]