From 088282b0c1a862d1f575b034bb30188da356b42f Mon Sep 17 00:00:00 2001 From: Mayur Singal <39544459+ulixius9@users.noreply.github.com> Date: Thu, 3 Oct 2024 20:40:23 +0530 Subject: [PATCH] MINOR: MSTR URI Fix (#18095) --- .../src/metadata/ingestion/source/dashboard/mstr/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ingestion/src/metadata/ingestion/source/dashboard/mstr/client.py b/ingestion/src/metadata/ingestion/source/dashboard/mstr/client.py index d3ce1ada9ce..c3627187c6e 100644 --- a/ingestion/src/metadata/ingestion/source/dashboard/mstr/client.py +++ b/ingestion/src/metadata/ingestion/source/dashboard/mstr/client.py @@ -30,6 +30,7 @@ from metadata.ingestion.source.dashboard.mstr.models import ( MstrSearchResult, MstrSearchResultList, ) +from metadata.utils.helpers import clean_uri from metadata.utils.logger import ingestion_logger logger = ingestion_logger() @@ -44,8 +45,8 @@ class MSTRClient: def _get_base_url(self, path=None): if not path: - return f"{self.config.hostPort}/{API_VERSION}/" - return f"{self.config.hostPort}/{API_VERSION}/{path}" + return f"{clean_uri(self.config.hostPort)}/{API_VERSION}/" + return f"{clean_uri(self.config.hostPort)}/{API_VERSION}/{path}" def _get_mstr_session(self) -> MSTRRESTSession: try: