From 7cbc09971a4d7322a6b29d86ef1d1fcb71f68f04 Mon Sep 17 00:00:00 2001 From: Sujil02 Date: Tue, 31 Mar 2020 00:53:50 -0400 Subject: podmanv2 pod inspect Add the ability to inspect pod in podmanv2 Signed-off-by: Sujil02 --- pkg/api/handlers/libpod/pods.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/api/handlers/libpod') diff --git a/pkg/api/handlers/libpod/pods.go b/pkg/api/handlers/libpod/pods.go index e834029b2..a890169a1 100644 --- a/pkg/api/handlers/libpod/pods.go +++ b/pkg/api/handlers/libpod/pods.go @@ -73,7 +73,10 @@ func PodInspect(w http.ResponseWriter, r *http.Request) { utils.Error(w, "Something went wrong", http.StatusInternalServerError, err) return } - utils.WriteResponse(w, http.StatusOK, podData) + report := entities.PodInspectReport{ + PodInspect: podData, + } + utils.WriteResponse(w, http.StatusOK, report) } func PodStop(w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3-54-g00ecf