mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-28 02:46:09 +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,
|
MstrSearchResult,
|
||||||
MstrSearchResultList,
|
MstrSearchResultList,
|
||||||
)
|
)
|
||||||
|
from metadata.utils.helpers import clean_uri
|
||||||
from metadata.utils.logger import ingestion_logger
|
from metadata.utils.logger import ingestion_logger
|
||||||
|
|
||||||
logger = ingestion_logger()
|
logger = ingestion_logger()
|
||||||
@ -44,8 +45,8 @@ class MSTRClient:
|
|||||||
|
|
||||||
def _get_base_url(self, path=None):
|
def _get_base_url(self, path=None):
|
||||||
if not path:
|
if not path:
|
||||||
return f"{self.config.hostPort}/{API_VERSION}/"
|
return f"{clean_uri(self.config.hostPort)}/{API_VERSION}/"
|
||||||
return f"{self.config.hostPort}/{API_VERSION}/{path}"
|
return f"{clean_uri(self.config.hostPort)}/{API_VERSION}/{path}"
|
||||||
|
|
||||||
def _get_mstr_session(self) -> MSTRRESTSession:
|
def _get_mstr_session(self) -> MSTRRESTSession:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user