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 <nalin@redhat.com>
This commit is contained in:
Nalin Dahyabhai 2016-11-10 18:45:09 -05:00
parent 50a3958e5a
commit 5e28e20213

View file

@ -74,7 +74,7 @@ var listImageCommand = cli.Command{
fmt.Printf("Digest: %s\n", digest) fmt.Printf("Digest: %s\n", digest)
} }
if image.Size_ != nil { if image.Size_ != nil {
fmt.Printf("Size: %d\n", image.Size_) fmt.Printf("Size: %d\n", *image.Size_)
} }
} }
return nil return nil
@ -115,7 +115,7 @@ var imageStatusCommand = cli.Command{
fmt.Printf("Digest: %s\n", digest) fmt.Printf("Digest: %s\n", digest)
} }
if image.Size_ != nil { if image.Size_ != nil {
fmt.Printf("Size: %d\n", image.Size_) fmt.Printf("Size: %d\n", *image.Size_)
} }
return nil return nil
}, },