Skip to content

Commit

Permalink
hotfix: session creation failing when VFolder attached
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho committed Mar 31, 2024
1 parent a0be351 commit 66c9e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai/backend/manager/models/vfolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ async def prepare_vfolder_mounts(
kernel_path = PurePosixPath(kernel_path_raw)
if not kernel_path.is_absolute():
kernel_path = PurePosixPath("/home/work", kernel_path_raw)
match requested_perm := requested_mount_options[key]["permission"]:
match requested_perm := requested_mount_options.get(key, {}).get("permission"):
case MountPermission.READ_ONLY:
mount_perm = MountPermission.READ_ONLY
case MountPermission.READ_WRITE | MountPermission.RW_DELETE:
Expand Down

0 comments on commit 66c9e6c

Please sign in to comment.