mirror of https://github.com/containers/podman.git
Merge pull request #4468 from nalind/image-digests
podman images --digest: always list a digest
This commit is contained in:
commit
769d4218ff
|
|
@ -291,6 +291,10 @@ func getImagesTemplateOutput(ctx context.Context, images []*adapter.ContainerIma
|
|||
if len(tag) == 71 && strings.HasPrefix(tag, "sha256:") {
|
||||
imageDigest = digest.Digest(tag)
|
||||
tag = ""
|
||||
} else {
|
||||
if img.Digest() != "" {
|
||||
imageDigest = img.Digest()
|
||||
}
|
||||
}
|
||||
params := imagesTemplateParams{
|
||||
Repository: repo,
|
||||
|
|
|
|||
Loading…
Reference in New Issue