diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-22 11:00:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 11:00:09 -0400 |
commit | 513c2610f37fa530b951a9a0105f49dfd346c091 (patch) | |
tree | a3e889e5825ea067b93991770bdf1ebba5e8be27 /pkg/api/handlers/compat | |
parent | 5d70f46bd3f90739bf1ae3eba473523200669025 (diff) | |
parent | b898f914a3a9b8cad5519ace0167d738e2f85186 (diff) | |
download | podman-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/compat')
-rw-r--r-- | pkg/api/handlers/compat/images.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/compat/images.go b/pkg/api/handlers/compat/images.go index 3431823bd..d177b2335 100644 --- a/pkg/api/handlers/compat/images.go +++ b/pkg/api/handlers/compat/images.go @@ -60,7 +60,7 @@ func ExportImage(w http.ResponseWriter, r *http.Request) { utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "unable to close tempfile")) return } - if err := newImage.Save(r.Context(), name, "docker-archive", tmpfile.Name(), []string{}, false, false); err != nil { + if err := newImage.Save(r.Context(), name, "docker-archive", tmpfile.Name(), []string{}, false, false, true); err != nil { utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "failed to save image")) return } @@ -429,7 +429,7 @@ func ExportImages(w http.ResponseWriter, r *http.Request) { utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "unable to close tempfile")) return } - if err := runtime.ImageRuntime().SaveImages(r.Context(), images, "docker-archive", tmpfile.Name(), false); err != nil { + if err := runtime.ImageRuntime().SaveImages(r.Context(), images, "docker-archive", tmpfile.Name(), false, true); err != nil { utils.InternalServerError(w, err) return } |