Skip to content

Commit

Permalink
libpod/image: Use RepoDigests() in Inspect()
Browse files Browse the repository at this point in the history
To get the more-robust handling from 0f6535c (libpod/image: Use
ParseNormalizedNamed in RepoDigests, 2019-01-08, containers#2106) here too.

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information
wking authored and mheon committed Feb 8, 2019
1 parent 5f4cdf1 commit 109e8cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libpod/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,9 +824,9 @@ func (i *Image) Inspect(ctx context.Context) (*inspect.ImageData, error) {
return nil, err
}

var repoDigests []string
for _, name := range i.Names() {
repoDigests = append(repoDigests, strings.SplitN(name, ":", 2)[0]+"@"+i.Digest().String())
repoDigests, err := i.RepoDigests()
if err != nil {
return nil, err
}

driver, err := i.DriverData()
Expand Down

0 comments on commit 109e8cc

Please sign in to comment.