Skip to content

Commit

Permalink
modify host_url
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitij-microsoft committed Sep 26, 2024
1 parent d688c3c commit 3dbb2d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def _load(
return result

@classmethod
def _from_rest_object(cls, rest_obj: RestWorkspace, v2_service_context: Optional[object]) -> Optional["Workspace"]:
def _from_rest_object(cls, rest_obj: RestWorkspace, v2_service_context: Optional[object] = None) -> Optional["Workspace"]:

if not rest_obj:
return None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get(self, workspace_name: Optional[str] = None, **kwargs: Any) -> Optional[W

from urllib.parse import urlparse
parsed_url = urlparse(obj.ml_flow_tracking_uri)
host_url = parsed_url.netloc
host_url = "https://{}".format(parsed_url.netloc)
v2_service_context['host_url'] = host_url

# host_url=service_context._get_mlflow_url(),
Expand Down

0 comments on commit 3dbb2d2

Please sign in to comment.