Skip to content

Commit

Permalink
Add FIXME
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Feb 7, 2020
1 parent 44248c3 commit 5bbd389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpod/image/image.go
Expand Up @@ -1343,7 +1343,7 @@ func (i *Image) Containers() ([]string, error) {
// Comment returns the Comment for an image depending on its ManifestType
//
// Deprecated: This has no external callers.
func (i *Image) Comment(ctx context.Context, manifestType string) (string, error) {
func (i *Image) Comment(ctx context.Context, manifestType string) (string, error) { // FIXME: Should be returned by c/image Inspect
if manifestType == manifest.DockerV2Schema2MediaType {
imgRef, err := i.toImageRef(ctx)
if err != nil {
Expand All @@ -1367,7 +1367,7 @@ func (i *Image) Comment(ctx context.Context, manifestType string) (string, error
return "", err
}
if len(ociv1Img.History) > 0 {
return ociv1Img.History[0].Comment, nil
return ociv1Img.History[0].Comment, nil // FIXME: Not the last layer???
}
return "", nil
}
Expand Down

0 comments on commit 5bbd389

Please sign in to comment.