summaryrefslogtreecommitdiff
path: root/cmd/podman/images.go
diff options
context:
space:
mode:
authorumohnani8 <umohnani@redhat.com>2018-01-23 16:50:20 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-25 03:23:10 +0000
commit12e3d9d8a26d2c33d587dba9b7ea5b0dcfd92eea (patch)
tree6e596e575eba2c990db4f920baf41ab1bd1210c7 /cmd/podman/images.go
parent4c7bab9812b95fed8e6f8255b51b843b3e762782 (diff)
downloadpodman-12e3d9d8a26d2c33d587dba9b7ea5b0dcfd92eea.tar.gz
podman-12e3d9d8a26d2c33d587dba9b7ea5b0dcfd92eea.tar.bz2
podman-12e3d9d8a26d2c33d587dba9b7ea5b0dcfd92eea.zip
Fix podman stats based on QE feedback
QE found issues with formatting the go template and the man page was lacking information. Changed the format of the output to match latest docker. Add shortID function that returns the truncated ID Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #258 Approved by: rhatdan
Diffstat (limited to 'cmd/podman/images.go')
-rw-r--r--cmd/podman/images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images.go b/cmd/podman/images.go
index 90dd8ae12..1f1174950 100644
--- a/cmd/podman/images.go
+++ b/cmd/podman/images.go
@@ -194,7 +194,7 @@ func getImagesTemplateOutput(runtime *libpod.Runtime, images []*storage.Image, o
imageID := "sha256:" + img.ID
if !opts.noTrunc {
- imageID = img.ID[:idTruncLength]
+ imageID = shortID(img.ID)
}
repository := "<none>"