From 55e5e37c4f085c0216a3d99dc7e3c3f12c2c7a88 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Wed, 5 Feb 2014 19:09:55 -0700 Subject: [PATCH] Fix broken images API for version <1.7 Simple typo, "ID" should be "Id". This is causing the images response to not have IDs in it. Docker-DCO-1.1-Signed-off-by: Darren Shepherd (github: ibuildthecloud) --- api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.go b/api/api.go index 741dc69085..376c906c31 100644 --- a/api/api.go +++ b/api/api.go @@ -222,7 +222,7 @@ func getImagesJSON(eng *engine.Engine, version float64, w http.ResponseWriter, r outLegacy := &engine.Env{} outLegacy.Set("Repository", parts[0]) outLegacy.Set("Tag", parts[1]) - outLegacy.Set("ID", out.Get("ID")) + outLegacy.Set("Id", out.Get("Id")) outLegacy.SetInt64("Created", out.GetInt64("Created")) outLegacy.SetInt64("Size", out.GetInt64("Size")) outLegacy.SetInt64("VirtualSize", out.GetInt64("VirtualSize"))