MINOR: MSTR URI Fix (#18095)

This commit is contained in:
Mayur Singal 2024-10-03 20:40:23 +05:30 committed by GitHub
parent eada21326a
commit 088282b0c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: