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:") {
|
if len(tag) == 71 && strings.HasPrefix(tag, "sha256:") {
|
||||||
imageDigest = digest.Digest(tag)
|
imageDigest = digest.Digest(tag)
|
||||||
tag = ""
|
tag = ""
|
||||||
|
} else {
|
||||||
|
if img.Digest() != "" {
|
||||||
|
imageDigest = img.Digest()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
params := imagesTemplateParams{
|
params := imagesTemplateParams{
|
||||||
Repository: repo,
|
Repository: repo,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue