Skip to content

Commit

Permalink
fix function
Browse files Browse the repository at this point in the history
  • Loading branch information
robzor92 committed Jan 29, 2024
1 parent 780a02c commit b7240d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/hopsworks/core/opensearch_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ def __init__(

def _get_opensearch_url(self):
if isinstance(client.get_instance(), client.external.Client):
external_domain = self._variable_api.get_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_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 "
Expand Down

0 comments on commit b7240d4

Please sign in to comment.