summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-08 17:48:01 +0200
committerGitHub <noreply@github.com>2021-06-08 17:48:01 +0200
commit3d961acc222b89bca466cfd385e31f8300a3e021 (patch)
tree1af4a31f2c36d8516c137e96d4b38e6f768642c8 /pkg/api/handlers/compat
parent5d96b8e7d6dbf1f6f4eb6fed5f8f6142541fef7f (diff)
parent8378a9c4df9af5f5cc72a3515ca65d1e3ca011a0 (diff)
downloadpodman-3d961acc222b89bca466cfd385e31f8300a3e021.tar.gz
podman-3d961acc222b89bca466cfd385e31f8300a3e021.tar.bz2
podman-3d961acc222b89bca466cfd385e31f8300a3e021.zip
Merge pull request #10597 from Luap99/prune
Fix network prune api docs
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r--pkg/api/handlers/compat/networks.go2
-rw-r--r--pkg/api/handlers/compat/swagger.go7
2 files changed, 1 insertions, 8 deletions
diff --git a/pkg/api/handlers/compat/networks.go b/pkg/api/handlers/compat/networks.go
index 77ed548d8..04f8570ff 100644
--- a/pkg/api/handlers/compat/networks.go
+++ b/pkg/api/handlers/compat/networks.go
@@ -414,7 +414,7 @@ func Prune(w http.ResponseWriter, r *http.Request) {
type response struct {
NetworksDeleted []string
}
- var prunedNetworks []string //nolint
+ prunedNetworks := []string{}
for _, pr := range pruneReports {
if pr.Error != nil {
logrus.Error(pr.Error)
diff --git a/pkg/api/handlers/compat/swagger.go b/pkg/api/handlers/compat/swagger.go
index a0783e723..b773799ef 100644
--- a/pkg/api/handlers/compat/swagger.go
+++ b/pkg/api/handlers/compat/swagger.go
@@ -77,10 +77,3 @@ type swagCompatNetworkDisconnectRequest struct {
// in:body
Body struct{ types.NetworkDisconnect }
}
-
-// Network prune
-// swagger:response NetworkPruneResponse
-type swagCompatNetworkPruneResponse struct {
- // in:body
- Body []string
-}