Skip to content

Commit d7d656b

Browse files
fengtalityclaude
andcommitted
Fix available_images endpoint returning 500 error
The endpoint was iterating over Docker Image objects directly instead of extracting their tags, causing JSON serialization to fail. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 252d1cb commit d7d656b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

routers/docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def available_images(image_name: str = None, docker_service: DockerService
3939
available_images = docker_service.get_available_images()
4040
if image_name:
4141
return [tag for image in available_images["images"] for tag in image.tags if image_name in tag]
42-
return [tag for tag in available_images["images"]]
42+
return [tag for image in available_images["images"] for tag in image.tags]
4343

4444

4545
@router.get("/active-containers")

0 commit comments

Comments
 (0)