From 5e28e202138825fb76b58bc6cb0d9032a45a74e1 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 10 Nov 2016 18:45:09 -0500 Subject: [PATCH] Fix client size reporting The client size field that we get back when we inspect an image is a pointer to a number, not just a number, so we need to dereference it for display. Signed-off-by: Nalin Dahyabhai --- cmd/client/image.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/client/image.go b/cmd/client/image.go index 9d351e33..e2efdb11 100644 --- a/cmd/client/image.go +++ b/cmd/client/image.go @@ -74,7 +74,7 @@ var listImageCommand = cli.Command{ fmt.Printf("Digest: %s\n", digest) } if image.Size_ != nil { - fmt.Printf("Size: %d\n", image.Size_) + fmt.Printf("Size: %d\n", *image.Size_) } } return nil @@ -115,7 +115,7 @@ var imageStatusCommand = cli.Command{ fmt.Printf("Digest: %s\n", digest) } if image.Size_ != nil { - fmt.Printf("Size: %d\n", image.Size_) + fmt.Printf("Size: %d\n", *image.Size_) } return nil },