Skip to content

Commit

Permalink
Fix backwards compatibility settings (1.12) (#1807)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Klopper <[email protected]>
  • Loading branch information
dekkers and underdarknl authored Sep 20, 2023
1 parent 270bc41 commit a8fd59c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bytes/bytes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
4 changes: 1 addition & 3 deletions mula/scheduler/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit a8fd59c

Please sign in to comment.