mirror of https://github.com/containers/podman.git
				
				
				
			podman images --digest: always list a digest
When we're asked to display image digests, always provide them if we have values that we can provide. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
		
							parent
							
								
									2e2d82ce76
								
							
						
					
					
						commit
						5e3e41daee
					
				|  | @ -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