diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-06-02 09:30:35 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-06-02 17:08:31 +0200 |
commit | 030a4d3257f43d50565ffc9f683757cacb876693 (patch) | |
tree | 518c946631ce9d1c4dec0bee2a1557e11df78026 /cmd/podman/images/list.go | |
parent | d6bf6b92c8aba3195261e3bedd1d4f11a7210314 (diff) | |
download | podman-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/podman/images/list.go')
-rw-r--r-- | cmd/podman/images/list.go | 6 |
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}}" |