summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-06-02 09:30:35 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-06-02 17:08:31 +0200
commit030a4d3257f43d50565ffc9f683757cacb876693 (patch)
tree518c946631ce9d1c4dec0bee2a1557e11df78026 /cmd
parentd6bf6b92c8aba3195261e3bedd1d4f11a7210314 (diff)
downloadpodman-030a4d3257f43d50565ffc9f683757cacb876693.tar.gz
podman-030a4d3257f43d50565ffc9f683757cacb876693.tar.bz2
podman-030a4d3257f43d50565ffc9f683757cacb876693.zip
images --no-trunc: fix ID formatting
Remove the redundant `sha256:` prefix from the image IDs. Fixes: #6459 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/images/list.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/podman/images/list.go b/cmd/podman/images/list.go
index 4f8948b8b..23757104b 100644
--- a/cmd/podman/images/list.go
+++ b/cmd/podman/images/list.go
@@ -234,11 +234,7 @@ func imageListFormat(flags listFlagType) (string, string) {
}
hdr += "\tIMAGE ID"
- if flags.noTrunc {
- row += "\tsha256:{{.ID}}"
- } else {
- row += "\t{{.ID}}"
- }
+ row += "\t{{.ID}}"
hdr += "\tCREATED\tSIZE"
row += "\t{{.Created}}\t{{.Size}}"