diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-29 16:12:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 16:12:51 -0400 |
commit | c66ce8d67f9eb53a0997da39999ed8629d3252e3 (patch) | |
tree | 0a9655c6f4d77bc4ce34fb59d0c1a53527443420 | |
parent | d5ce1cd647a50f879d59e2bebc9299e95e4e06e7 (diff) | |
parent | 23294c9cf6a85a36fcd7d67c2cc3b7389b4691eb (diff) | |
download | podman-c66ce8d67f9eb53a0997da39999ed8629d3252e3.tar.gz podman-c66ce8d67f9eb53a0997da39999ed8629d3252e3.tar.bz2 podman-c66ce8d67f9eb53a0997da39999ed8629d3252e3.zip |
Merge pull request #7147 from rhatdan/history
Return NamesHistory when returning remote images
-rw-r--r-- | pkg/api/handlers/types.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pkg/api/handlers/types.go b/pkg/api/handlers/types.go index a17f5df56..0ccaa95bb 100644 --- a/pkg/api/handlers/types.go +++ b/pkg/api/handlers/types.go @@ -203,15 +203,6 @@ func ImageToImageSummary(l *libpodImage.Image) (*entities.ImageSummary, error) { return nil, errors.Wrapf(err, "Failed to obtain RepoTags for image %s", l.ID()) } - history, err := l.History(context.TODO()) - if err != nil { - return nil, errors.Wrapf(err, "Failed to obtain History for image %s", l.ID()) - } - historyIds := make([]string, len(history)) - for i, h := range history { - historyIds[i] = h.ID - } - digests := make([]string, len(l.Digests())) for i, d := range l.Digests() { digests[i] = string(d) @@ -233,7 +224,7 @@ func ImageToImageSummary(l *libpodImage.Image) (*entities.ImageSummary, error) { Digest: string(l.Digest()), Digests: digests, ConfigDigest: string(l.ConfigDigest), - History: historyIds, + History: l.NamesHistory(), } return &is, nil } |