summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-08-04 13:41:44 -0500
committerBrent Baude <bbaude@redhat.com>2020-08-04 15:31:51 -0500
commit7590a415d005abcb7774ced296c219822d47991a (patch)
tree43ac6abb498244e3427ffa514e1f0a4cd997d8c5 /pkg/bindings
parentd4cf3c589d09dd395a3b63e82f5a5c198535cb46 (diff)
downloadpodman-7590a415d005abcb7774ced296c219822d47991a.tar.gz
podman-7590a415d005abcb7774ced296c219822d47991a.tar.bz2
podman-7590a415d005abcb7774ced296c219822d47991a.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/bindings')
-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 9e6dbef19..9913b773b 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 {