summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/images.go
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2020-10-22 15:00:31 -0400
committerQi Wang <qiwan@redhat.com>2020-12-02 09:25:01 -0500
commitf525d8b8431b13359c0e2f6c8be45687eb32a0fd (patch)
tree8257fbd4255fb9fc091550802eb813edaf3cef70 /pkg/api/handlers/compat/images.go
parentd28874b2f4bc4f522ed2dc63412e9ddfea011fac (diff)
downloadpodman-f525d8b8431b13359c0e2f6c8be45687eb32a0fd.tar.gz
podman-f525d8b8431b13359c0e2f6c8be45687eb32a0fd.tar.bz2
podman-f525d8b8431b13359c0e2f6c8be45687eb32a0fd.zip
Do not pass name argument to Load API
Not pass the name argument to Load API. Specify in the document the usage of the optional argument is tagging an additional image. Close #7337 Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'pkg/api/handlers/compat/images.go')
-rw-r--r--pkg/api/handlers/compat/images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/images.go b/pkg/api/handlers/compat/images.go
index d177b2335..a51dd8ed3 100644
--- a/pkg/api/handlers/compat/images.go
+++ b/pkg/api/handlers/compat/images.go
@@ -390,7 +390,7 @@ func LoadImages(w http.ResponseWriter, r *http.Request) {
utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "failed to write temporary file"))
return
}
- id, err := runtime.LoadImage(r.Context(), "", f.Name(), writer, "")
+ id, err := runtime.LoadImage(r.Context(), f.Name(), writer, "")
if err != nil {
utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "failed to load image"))
return