summaryrefslogtreecommitdiff
path: root/pkg/bindings/network/network.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-28 14:13:32 +0000
committerGitHub <noreply@github.com>2020-09-28 14:13:32 +0000
commit97841e55072ae71713922ab6c6c1269e74b08dcf (patch)
tree755a73bf2863a88b5523692f1c920177930620a9 /pkg/bindings/network/network.go
parent03d01abec6d028e9d5f60615b0451e42d0611d1d (diff)
parent343a10e25fb12685f18ed3600c567397c01a7cc8 (diff)
downloadpodman-97841e55072ae71713922ab6c6c1269e74b08dcf.tar.gz
podman-97841e55072ae71713922ab6c6c1269e74b08dcf.tar.bz2
podman-97841e55072ae71713922ab6c6c1269e74b08dcf.zip
Merge pull request #7793 from Luap99/network-force
Fix podman network rm --force when network is used by a pod
Diffstat (limited to 'pkg/bindings/network/network.go')
-rw-r--r--pkg/bindings/network/network.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/network/network.go b/pkg/bindings/network/network.go
index d8dc7e352..151d15d3e 100644
--- a/pkg/bindings/network/network.go
+++ b/pkg/bindings/network/network.go
@@ -60,7 +60,7 @@ func Remove(ctx context.Context, nameOrID string, force *bool) ([]*entities.Netw
}
params := url.Values{}
if force != nil {
- params.Set("size", strconv.FormatBool(*force))
+ params.Set("force", strconv.FormatBool(*force))
}
response, err := conn.DoRequest(nil, http.MethodDelete, "/networks/%s", params, nil, nameOrID)
if err != nil {