summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-08-04 13:41:44 -0500
committerValentin Rothberg <rothberg@redhat.com>2020-08-11 13:53:23 +0200
commit43527de53e40b737333502f6fbb2e1d73a3f3ec9 (patch)
tree30a910037de1b19267542edc1983b801d971eb52 /pkg
parent9b591e11d5d65e210871fa5a8d5083f6f6844434 (diff)
downloadpodman-43527de53e40b737333502f6fbb2e1d73a3f3ec9.tar.gz
podman-43527de53e40b737333502f6fbb2e1d73a3f3ec9.tar.bz2
podman-43527de53e40b737333502f6fbb2e1d73a3f3ec9.zip
correct go-binding key for volumes
the go binding for remove container was using 'vols' for a key to remove volumes associated to the container. the correct key should be "v" and is documented as such. Fixes: #7128 Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/bindings/containers/containers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/containers/containers.go b/pkg/bindings/containers/containers.go
index c690ea125..c479e5dcb 100644
--- a/pkg/bindings/containers/containers.go
+++ b/pkg/bindings/containers/containers.go
@@ -98,7 +98,7 @@ func Remove(ctx context.Context, nameOrID string, force, volumes *bool) error {
params.Set("force", strconv.FormatBool(*force))
}
if volumes != nil {
- params.Set("vols", strconv.FormatBool(*volumes))
+ params.Set("v", strconv.FormatBool(*volumes))
}
response, err := conn.DoRequest(nil, http.MethodDelete, "/containers/%s", params, nil, nameOrID)
if err != nil {