summaryrefslogtreecommitdiff
path: root/pkg/bindings/images/rm.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-05-18 09:29:43 -0500
committerBrent Baude <bbaude@redhat.com>2020-05-18 09:35:51 -0500
commitfe16f8f67ae80c691e6068ecb642e96673571632 (patch)
tree95fbc4fb4f8e2100e43f072018135c96a2d65d8e /pkg/bindings/images/rm.go
parentbfcec3203ea517f408ad90d42789fb6eb62e7d81 (diff)
downloadpodman-fe16f8f67ae80c691e6068ecb642e96673571632.tar.gz
podman-fe16f8f67ae80c691e6068ecb642e96673571632.tar.bz2
podman-fe16f8f67ae80c691e6068ecb642e96673571632.zip
v2endpoint remove image path correction
the endpoint for single image removal (on the libpod side) should be as follows: versionedPath/libpod/images/IMAGENAME The DELETE method then signifies the removal of the image. Fixes: #6261 Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/bindings/images/rm.go')
-rw-r--r--pkg/bindings/images/rm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/images/rm.go b/pkg/bindings/images/rm.go
index e3b5590df..05aa3f9ca 100644
--- a/pkg/bindings/images/rm.go
+++ b/pkg/bindings/images/rm.go
@@ -52,7 +52,7 @@ func Remove(ctx context.Context, nameOrID string, force bool) (*entities.ImageRe
params := url.Values{}
params.Set("force", strconv.FormatBool(force))
- response, err := conn.DoRequest(nil, http.MethodDelete, "/images/%s/remove", params, nameOrID)
+ response, err := conn.DoRequest(nil, http.MethodDelete, "/images/%s", params, nameOrID)
if err != nil {
return nil, err
}