From e619ee311a62a197c07e4a69f5eab56d18a8e37a Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Fri, 10 Jun 2016 21:14:36 -0700 Subject: [PATCH] fix piped image info missing image id --- images.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/images.go b/images.go index d2145df..e41fd65 100644 --- a/images.go +++ b/images.go @@ -63,6 +63,22 @@ func (x *ImagesCommand) Execute(args []string) error { return err } + var ims []Image + for _, image := range *images { + ims = append(ims, Image{ + image.Id, + image.ParentId, + image.RepoTags, + image.VirtualSize, + image.Size, + image.Created, + image.Id, + "", + }) + } + + images = &ims + } else { client, err := connect()