mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 18:36:08 +00:00
MINOR: MSTR URI Fix (#18095)
This commit is contained in:
parent
eada21326a
commit
088282b0c1
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user