diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-16 11:31:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 11:31:33 +0100 |
commit | 0f954e2371265c1da2a337172c390eaae3a04229 (patch) | |
tree | 1b53295917b1e37a2337f93e60510206529f3f29 /pkg/api | |
parent | d9f84692c13406f7e4e22d4bb16db4e8a7d086ab (diff) | |
parent | 7b0155cf780f396f6ffc4455ae5825f5fc14ca79 (diff) | |
download | podman-0f954e2371265c1da2a337172c390eaae3a04229.tar.gz podman-0f954e2371265c1da2a337172c390eaae3a04229.tar.bz2 podman-0f954e2371265c1da2a337172c390eaae3a04229.zip |
Merge pull request #9695 from jmguzik/array-inspect-network-fix
Fix array instead of one elem network http api
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/handlers/libpod/networks.go | 2 | ||||
-rw-r--r-- | pkg/api/handlers/libpod/swagger.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/libpod/networks.go b/pkg/api/handlers/libpod/networks.go index a6c4f6d64..48cd37994 100644 --- a/pkg/api/handlers/libpod/networks.go +++ b/pkg/api/handlers/libpod/networks.go @@ -128,7 +128,7 @@ func InspectNetwork(w http.ResponseWriter, r *http.Request) { utils.InternalServerError(w, err) return } - utils.WriteResponse(w, http.StatusOK, reports) + utils.WriteResponse(w, http.StatusOK, reports[0]) } // Connect adds a container to a network diff --git a/pkg/api/handlers/libpod/swagger.go b/pkg/api/handlers/libpod/swagger.go index 1bececa1a..2631f19ac 100644 --- a/pkg/api/handlers/libpod/swagger.go +++ b/pkg/api/handlers/libpod/swagger.go @@ -102,7 +102,7 @@ type swagNetworkRmReport struct { // swagger:response NetworkInspectReport type swagNetworkInspectReport struct { // in:body - Body []entities.NetworkInspectReport + Body entities.NetworkInspectReport } // Network list |