Skip to content

Commit

Permalink
try to pin down source
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Sep 28, 2024
1 parent 77c25e4 commit b119181
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/neuroconv/tools/aws/_submit_aws_batch_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,14 @@ def _create_or_get_efs_id(
if tag["Key"] == "Name" and tag["Value"] == efs_volume_name
]

if len(matching_efs_volumes) > 1:
if len(matching_efs_volumes) == 1:
efs_volume = matching_efs_volumes[0]
efs_id = efs_volume["FileSystemId"]

return efs_id
elif len(matching_efs_volumes) > 1:
message = f"Multiple EFS volumes with the name '{efs_volume_name}' were found!\n\n{matching_efs_volumes=}\n"
raise ValueError(message)

# Existing volume not found - must create a fresh one and set mount targets on it
efs_volume = efs_client.create_file_system(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_deploy_neuroconv_batch_job(self):
)

rclone_command = (
"rclone copy test_google_drive_remote:testing_rclone_spikeglx/ci_tests /mnt/efs/source"
"rclone copy test_google_drive_remote:testing_rclone_spikeglx_and_phy/ci_tests /mnt/efs/source"
"--verbose --progress --config ./rclone.conf" # TODO: should just include this in helper function?
)

Expand Down

0 comments on commit b119181

Please sign in to comment.