From 030a4d3257f43d50565ffc9f683757cacb876693 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Tue, 2 Jun 2020 09:30:35 +0200 Subject: images --no-trunc: fix ID formatting Remove the redundant `sha256:` prefix from the image IDs. Fixes: #6459 Signed-off-by: Valentin Rothberg --- cmd/podman/images/list.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cmd/podman/images') 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}}" -- cgit v1.2.3-54-g00ecf