Skip to content

Commit

Permalink
Use DAB value as fallback value for service path setting (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding authored Sep 30, 2024
1 parent ed52478 commit f654134
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/aap_eda/settings/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", {}
)
Expand Down

0 comments on commit f654134

Please sign in to comment.