summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/libpod/images.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-22 11:00:09 -0400
committerGitHub <noreply@github.com>2020-10-22 11:00:09 -0400
commit513c2610f37fa530b951a9a0105f49dfd346c091 (patch)
treea3e889e5825ea067b93991770bdf1ebba5e8be27 /pkg/api/handlers/libpod/images.go
parent5d70f46bd3f90739bf1ae3eba473523200669025 (diff)
parentb898f914a3a9b8cad5519ace0167d738e2f85186 (diff)
downloadpodman-513c2610f37fa530b951a9a0105f49dfd346c091.tar.gz
podman-513c2610f37fa530b951a9a0105f49dfd346c091.tar.bz2
podman-513c2610f37fa530b951a9a0105f49dfd346c091.zip
Merge pull request #7956 from QiWang19/save-rm-sig
Allow save image remove-signatures
Diffstat (limited to 'pkg/api/handlers/libpod/images.go')
-rw-r--r--pkg/api/handlers/libpod/images.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/images.go b/pkg/api/handlers/libpod/images.go
index 3fb5d23c8..598a46abe 100644
--- a/pkg/api/handlers/libpod/images.go
+++ b/pkg/api/handlers/libpod/images.go
@@ -206,7 +206,7 @@ func ExportImage(w http.ResponseWriter, r *http.Request) {
utils.Error(w, "unknown format", http.StatusInternalServerError, errors.Errorf("unknown format %q", query.Format))
return
}
- if err := newImage.Save(r.Context(), name, query.Format, output, []string{}, false, query.Compress); err != nil {
+ if err := newImage.Save(r.Context(), name, query.Format, output, []string{}, false, query.Compress, true); err != nil {
utils.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest, err)
return
}
@@ -284,6 +284,7 @@ func ExportImages(w http.ResponseWriter, r *http.Request) {
Format: query.Format,
MultiImageArchive: true,
Output: output,
+ RemoveSignatures: true,
}
imageEngine := abi.ImageEngine{Libpod: runtime}