File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1448,9 +1448,9 @@ def download_artifact(
1448
1448
artifact_dir = _prepare_artifact_dir (artifact_dir )
1449
1449
1450
1450
target_dir = (
1451
- artifact_dir
1452
- if not ObjectStorageDetails .is_oci_path (artifact_dir )
1453
- else tempfile . mkdtemp ()
1451
+ _prepare_artifact_dir ()
1452
+ if ObjectStorageDetails .is_oci_path (artifact_dir )
1453
+ else artifact_dir
1454
1454
)
1455
1455
1456
1456
dsc_model = DataScienceModel .from_id (model_id )
@@ -1585,9 +1585,9 @@ def from_model_catalog(
1585
1585
artifact_dir = _prepare_artifact_dir (artifact_dir )
1586
1586
1587
1587
target_dir = (
1588
- artifact_dir
1589
- if not ObjectStorageDetails .is_oci_path (artifact_dir )
1590
- else tempfile . mkdtemp ()
1588
+ _prepare_artifact_dir ()
1589
+ if ObjectStorageDetails .is_oci_path (artifact_dir )
1590
+ else artifact_dir
1591
1591
)
1592
1592
bucket_uri = bucket_uri or (
1593
1593
artifact_dir if ObjectStorageDetails .is_oci_path (artifact_dir ) else None
You can’t perform that action at this time.
0 commit comments