From 32f54a81ed797597827123b671b6e73194354327 Mon Sep 17 00:00:00 2001 From: Toshiki Sonoda Date: Thu, 29 Sep 2022 11:01:33 +0900 Subject: remote: fix manifest add --annotation * `manifest add --annotation option` adds annotations field on remote environment. * `manifest inspect` prints annotations field on remote environment. Fixes: #15952 Signed-off-by: Toshiki Sonoda --- pkg/api/handlers/libpod/manifests.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/api/handlers') diff --git a/pkg/api/handlers/libpod/manifests.go b/pkg/api/handlers/libpod/manifests.go index c96e4936b..f50bfd360 100644 --- a/pkg/api/handlers/libpod/manifests.go +++ b/pkg/api/handlers/libpod/manifests.go @@ -11,8 +11,8 @@ import ( "strconv" "strings" + "github.com/containers/common/libimage" "github.com/containers/image/v5/docker/reference" - "github.com/containers/image/v5/manifest" "github.com/containers/image/v5/types" "github.com/containers/podman/v4/libpod" "github.com/containers/podman/v4/pkg/api/handlers" @@ -148,7 +148,7 @@ func ManifestInspect(w http.ResponseWriter, r *http.Request) { return } - var schema2List manifest.Schema2List + var schema2List libimage.ManifestListData if err := json.Unmarshal(rawManifest, &schema2List); err != nil { utils.Error(w, http.StatusInternalServerError, err) return -- cgit v1.2.3-54-g00ecf