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:
parent
50a3958e5a
commit
5e28e20213
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue