Skip to content

Commit 3dbb2d2

Browse files
modify host_url
1 parent d688c3c commit 3dbb2d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def _load(
317317
return result
318318

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

322322
if not rest_obj:
323323
return None

sdk/ml/azure-ai-ml/azure/ai/ml/operations/_workspace_operations_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def get(self, workspace_name: Optional[str] = None, **kwargs: Any) -> Optional[W
9595

9696
from urllib.parse import urlparse
9797
parsed_url = urlparse(obj.ml_flow_tracking_uri)
98-
host_url = parsed_url.netloc
98+
host_url = "https://{}".format(parsed_url.netloc)
9999
v2_service_context['host_url'] = host_url
100100

101101
# host_url=service_context._get_mlflow_url(),

0 commit comments

Comments
 (0)