From 40b91af7e113874aa77d416f5e2bd85855a7e405 Mon Sep 17 00:00:00 2001 From: Robin Andersson Date: Mon, 29 Jan 2024 12:11:30 +0100 Subject: [PATCH] fix --- python/hopsworks/core/opensearch_api.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python/hopsworks/core/opensearch_api.py b/python/hopsworks/core/opensearch_api.py index 5589400fd..bfbc6c1e3 100644 --- a/python/hopsworks/core/opensearch_api.py +++ b/python/hopsworks/core/opensearch_api.py @@ -33,13 +33,17 @@ def __init__( def _get_opensearch_url(self): if isinstance(client.get_instance(), client.external.Client): - external_domain = self._variable_api.get_variable("loadbalancer_external_domain") + external_domain = self._variable_api.get_variable( + "loadbalancer_external_domain" + ) if external_domain == "": # fallback to use hostname of head node external_domain = client.get_instance().host return f"https://{external_domain}:9200" else: - service_discovery_domain = self._variable_api.get_variable("service_discovery_domain") + service_discovery_domain = self._variable_api.get_variable( + "service_discovery_domain" + ) if service_discovery_domain == "": raise OpenSearchException( "Client could not locate service_discovery_domain "