From 7b0155cf780f396f6ffc4455ae5825f5fc14ca79 Mon Sep 17 00:00:00 2001 From: Jakub Guzik Date: Fri, 12 Mar 2021 00:03:03 +0100 Subject: Fix array instead of one elem network http api Signed-off-by: Jakub Guzik --- pkg/api/handlers/libpod/networks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/api/handlers/libpod/networks.go') diff --git a/pkg/api/handlers/libpod/networks.go b/pkg/api/handlers/libpod/networks.go index a6c4f6d64..48cd37994 100644 --- a/pkg/api/handlers/libpod/networks.go +++ b/pkg/api/handlers/libpod/networks.go @@ -128,7 +128,7 @@ func InspectNetwork(w http.ResponseWriter, r *http.Request) { utils.InternalServerError(w, err) return } - utils.WriteResponse(w, http.StatusOK, reports) + utils.WriteResponse(w, http.StatusOK, reports[0]) } // Connect adds a container to a network -- cgit v1.2.3-54-g00ecf