From ec27f5b6152e0060137195cb7a88a0fa611798c3 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Fri, 1 Sep 2017 11:50:18 -0700 Subject: [PATCH] server: Add sandbox to container info Signed-off-by: Mrunal Patel --- server/inspect.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/inspect.go b/server/inspect.go index 6de6d4fc..d8aa97a8 100644 --- a/server/inspect.go +++ b/server/inspect.go @@ -18,6 +18,7 @@ type ContainerInfo struct { Annotations map[string]string `json:"annotations"` LogPath string `json:"log_path"` Root string `json:"root"` + Sandbox string `json:"sandbox"` } // CrioInfo stores information about the crio daemon @@ -65,6 +66,7 @@ func (s *Server) GetInfoMux() *bone.Mux { Annotations: ctr.Annotations(), Root: ctr.MountPoint(), LogPath: filepath.Dir(ctr.LogPath()), + Sandbox: ctr.Sandbox(), } js, err := json.Marshal(ci) if err != nil {