diff --git a/src/aap_eda/settings/default.py b/src/aap_eda/settings/default.py index 34ad2bfea..60c2807fd 100644 --- a/src/aap_eda/settings/default.py +++ b/src/aap_eda/settings/default.py @@ -733,7 +733,15 @@ def get_rulebook_process_log_level() -> RulebookProcessLogLevel: "VALIDATE_HTTPS": settings.get("RESOURCE_SERVER__VALIDATE_HTTPS", False), } RESOURCE_JWT_USER_ID = settings.get("RESOURCE_JWT_USER_ID", None) -RESOURCE_SERVICE_PATH = settings.get("RESOURCE_SERVICE_PATH", None) + +try: + service_path_default = RESOURCE_SERVICE_PATH # noqa +except NameError: + service_path_default = None + +RESOURCE_SERVICE_PATH = settings.get( + "RESOURCE_SERVICE_PATH", service_path_default +) ANSIBLE_BASE_MANAGED_ROLE_REGISTRY = settings.get( "ANSIBLE_BASE_MANAGED_ROLE_REGISTRY", {} )