summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-01 18:28:53 +0100
committerGitHub <noreply@github.com>2019-02-01 18:28:53 +0100
commite6426af30bdd649c54537728c8a9bb1cd5a1ff14 (patch)
tree86e0e256c7deb9575cc7c5aa76a3cf9e48b9f789
parentb1dd595655b58e845ac9c136ba82eec2868eb824 (diff)
parent40943586d2d56a746bf780b7529d13f59cbbb64b (diff)
downloadpodman-e6426af30bdd649c54537728c8a9bb1cd5a1ff14.tar.gz
podman-e6426af30bdd649c54537728c8a9bb1cd5a1ff14.tar.bz2
podman-e6426af30bdd649c54537728c8a9bb1cd5a1ff14.zip
Merge pull request #2251 from wking/image-inspect-repo-digests
libpod/image: Use RepoDigests() in Inspect()
-rw-r--r--libpod/image/image.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index ea326d820..a32336f49 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -823,9 +823,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()