From fbeef1d70065913625f70e19283f9ba7c21ec249 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Tue, 24 May 2022 13:53:54 +0200 Subject: image list: remove unused ConfigDigest Remove the `ConfigDigest` field from `entities.ImageSummary` which has never been populated (or documented) until now. Unless there is a specific request or need to support it, remove the TODO that was added during the libimage migration. Signed-off-by: Valentin Rothberg --- pkg/domain/entities/images.go | 1 - pkg/domain/infra/abi/images_list.go | 2 -- 2 files changed, 3 deletions(-) (limited to 'pkg/domain') diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go index 553be1157..28ffcfbdf 100644 --- a/pkg/domain/entities/images.go +++ b/pkg/domain/entities/images.go @@ -68,7 +68,6 @@ type ImageSummary struct { // Podman extensions Names []string `json:",omitempty"` Digest string `json:",omitempty"` - ConfigDigest string `json:",omitempty"` History []string `json:",omitempty"` } diff --git a/pkg/domain/infra/abi/images_list.go b/pkg/domain/infra/abi/images_list.go index 9a0aaaf3a..25cddc503 100644 --- a/pkg/domain/infra/abi/images_list.go +++ b/pkg/domain/infra/abi/images_list.go @@ -37,8 +37,6 @@ func (ir *ImageEngine) List(ctx context.Context, opts entities.ImageListOptions) e := entities.ImageSummary{ ID: img.ID(), - // TODO: libpod/image didn't set it but libimage should - // ConfigDigest: string(img.ConfigDigest), Created: img.Created().Unix(), Dangling: isDangling, Digest: string(img.Digest()), -- cgit v1.2.3-54-g00ecf