Skip to content

Commit

Permalink
use new annotation in 'store info' when listing images
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Martin <adam.martin@ranchergovernment.com>
  • Loading branch information
amartin120 committed Sep 18, 2024
1 parent ad19584 commit 19acc1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/hauler/cli/store/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ func newItem(s *store.Layout, desc ocispec.Descriptor, m ocispec.Manifest, plat
ctype = "sbom"
}

ref, err := reference.Parse(desc.Annotations[ocispec.AnnotationRefName])
refName := desc.Annotations["io.containerd.image.name"]
if refName == "" {
refName = desc.Annotations[ocispec.AnnotationRefName]
}
ref, err := reference.Parse(refName)
if err != nil {
return item{}
}
Expand Down

0 comments on commit 19acc1c

Please sign in to comment.