From bfbb99e05cf53989b329e78c13dbefe675adc440 Mon Sep 17 00:00:00 2001 From: Ryan Cole Date: Tue, 8 Aug 2017 10:23:32 -0400 Subject: [PATCH] have server update list of containers on creation Signed-off-by: Ryan Cole --- cmd/kpod/inspect.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/kpod/inspect.go b/cmd/kpod/inspect.go index e2c19810..c973c4ad 100644 --- a/cmd/kpod/inspect.go +++ b/cmd/kpod/inspect.go @@ -83,7 +83,10 @@ func inspectCmd(c *cli.Context) error { } server, err := libkpod.New(config) if err != nil { - return err + return errors.Wrapf(err, "could not get container server") + } + if err = server.Update(); err != nil { + return errors.Wrapf(err, "could not update list of containers") } var data interface{} @@ -103,7 +106,7 @@ func inspectCmd(c *cli.Context) error { if err != nil { imgData, err := libkpodimage.GetImageData(server.Store(), name) if err != nil { - return errors.Wrapf(err, "error parsing image data") + return errors.Wrapf(err, "error parsing container or image data") } data = imgData