summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/libpod/manifests.go
diff options
context:
space:
mode:
authorToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-09-29 11:01:33 +0900
committerToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-09-29 18:14:41 +0900
commit32f54a81ed797597827123b671b6e73194354327 (patch)
tree2aefb9f7a39a2b385389b78e56acfaaa2e8e2edd /pkg/api/handlers/libpod/manifests.go
parentb7eee0b2ce1eb19804ebed6184d0ad2a4bd91fb9 (diff)
downloadpodman-32f54a81ed797597827123b671b6e73194354327.tar.gz
podman-32f54a81ed797597827123b671b6e73194354327.tar.bz2
podman-32f54a81ed797597827123b671b6e73194354327.zip
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 <sonoda.toshiki@fujitsu.com>
Diffstat (limited to 'pkg/api/handlers/libpod/manifests.go')
-rw-r--r--pkg/api/handlers/libpod/manifests.go4
1 files changed, 2 insertions, 2 deletions
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