Skip to content

Commit 2eabfb0

Browse files
authored
Removed dest Precheck (#504)
2 parents 6bacb4b + e5122a2 commit 2eabfb0

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

ads/common/dsc_file_system.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ def update_from_dsc_model(cls, dsc_model) -> dict:
265265

266266
class DSCFileSystemManager:
267267

268-
storage_mount_dest = set()
269-
270268
@classmethod
271269
def initialize(cls, arguments: dict) -> dict:
272270
"""Initialize and update arguments to dsc model.
@@ -286,12 +284,6 @@ def initialize(cls, arguments: dict) -> dict:
286284
"Parameter `dest` is required for mounting file storage system."
287285
)
288286

289-
if arguments["dest"] in cls.storage_mount_dest:
290-
raise ValueError(
291-
"Duplicate `dest` found. Please specify different `dest` for each file system to be mounted."
292-
)
293-
cls.storage_mount_dest.add(arguments["dest"])
294-
295287
# case oci://bucket@namespace/prefix
296288
if arguments["src"].startswith("oci://") and "@" in arguments["src"]:
297289
return OCIObjectStorage(**arguments).update_to_dsc_model()

tests/unitary/default_setup/jobs/test_jobs_mount_file_system.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,6 @@ def test_file_manager_process_data_error(self):
350350
):
351351
DSCFileSystemManager.initialize(test_mount_file_system)
352352

353-
test_mount_file_system_list = [test_mount_file_system] * 2
354-
with pytest.raises(
355-
ValueError,
356-
match="Duplicate `dest` found. Please specify different `dest` for each file system to be mounted."
357-
):
358-
for mount_file_system in test_mount_file_system_list:
359-
DSCFileSystemManager.initialize(mount_file_system)
360-
361353
def test_dsc_object_storage(self):
362354
object_storage = OCIObjectStorage(
363355
src="oci://bucket@namespace/prefix",

0 commit comments

Comments
 (0)