From 978f711787a28146b7399acfce9b840a4f29aa5e Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 9 Dec 2024 11:12:42 +0100 Subject: [PATCH] Use service_type rather then service_name to identify endpoints Appropriate flow for any tooling would be to check endpoints against service types rather then their names. Change-Id: If0fb6f9e24f5dac70109286b5cbfae81f841e799 --- freezer_ui/api/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freezer_ui/api/api.py b/freezer_ui/api/api.py index 7db8277..5d78460 100644 --- a/freezer_ui/api/api.py +++ b/freezer_ui/api/api.py @@ -60,7 +60,7 @@ def _get_service_url(request): try: catalog = (getattr(request.user, "service_catalog", [])) for c in catalog: - if c['name'] == 'freezer': + if c['type'] == 'backup': for endpoint_type in endpoint_type_priority: for e in c['endpoints']: if e['interface'] in endpoint_type: