Skip to content

Commit

Permalink
fix config.toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
pitt-liang committed Sep 9, 2024
1 parent b43096d commit 50dc31f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pai/dsw.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def mount(

resp: GetInstanceResponse = sess._acs_dsw_client.get_instance(self.instance_id)
datasets = [
UpdateInstanceRequestDatasets.from_map(ds.to_map())
UpdateInstanceRequestDatasets().from_map(ds.to_map())
for ds in resp.body.datasets
]
datasets.append(
Expand Down
3 changes: 2 additions & 1 deletion pai/toolkit/helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,13 @@ def get_workspace_api(self) -> WorkspaceAPI:
def get_default_oss_storage_uri(
self, workspace_id: str
) -> Tuple[Optional[str], Optional[str]]:
return Session._get_default_oss_storage(
bucket_name, endpoint = Session.get_default_oss_storage(
workspace_id=workspace_id,
cred=self._get_credential_client(),
region_id=self.region_id,
network=self.network,
)
return "oss://{}/".format(bucket_name), endpoint

def set_default_oss_storage(
self, workspace_id, bucket_name: str, intranet_endpoint: str
Expand Down

0 comments on commit 50dc31f

Please sign in to comment.