Skip to content

Commit eca2a30

Browse files
authored
fix(BA-1016): Wrong uuid parse in list presets API handler (#4006)
1 parent 3c8457a commit eca2a30

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changes/4006.fix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix wrong JSON serialization for response of list presets API handler

src/ai/backend/manager/api/resource.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def list_presets(request: web.Request) -> web.Response:
103103
row = cast(ResourcePresetRow, row)
104104
preset_slots = row.resource_slots.normalize_slots(ignore_unknown=True)
105105
resp["presets"].append({
106-
"id": row.id,
106+
"id": str(row.id),
107107
"name": row.name,
108108
"shared_memory": str(row.shared_memory) if row.shared_memory else None,
109109
"resource_slots": preset_slots.to_json(),

0 commit comments

Comments
 (0)