Skip to content

Commit

Permalink
fix: Missing conversion from str to UUID when get/setting vfolder quo…
Browse files Browse the repository at this point in the history
…ta (#487)
  • Loading branch information
lizable committed Jun 24, 2022
1 parent ae1c3c6 commit 126126c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/487.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix missing str to UUID conversion for `vfid` parameters in `get_quota` and `set_quota` manager-facing APIs in the storage proxy
4 changes: 2 additions & 2 deletions src/ai/backend/storage/api/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async def get_quota(request: web.Request) -> web.Response:
t.Dict(
{
t.Key("volume"): t.String(),
t.Key("vfid", default=None): t.Null | t.String,
t.Key("vfid", default=None): t.Null | tx.UUID,
},
),
) as params:
Expand All @@ -399,7 +399,7 @@ async def set_quota(request: web.Request) -> web.Response:
t.Dict(
{
t.Key("volume"): t.String(),
t.Key("vfid", default=None): t.Null | t.String,
t.Key("vfid", default=None): t.Null | tx.UUID,
t.Key("size_bytes"): tx.BinarySize,
},
),
Expand Down

0 comments on commit 126126c

Please sign in to comment.