diff options
author | Jakub Guzik <jakubmguzik@gmail.com> | 2021-03-12 00:03:03 +0100 |
---|---|---|
committer | Jakub Guzik <jakubmguzik@gmail.com> | 2021-03-12 00:03:03 +0100 |
commit | 7b0155cf780f396f6ffc4455ae5825f5fc14ca79 (patch) | |
tree | 6969fbedbd7cf3363d7f39cdd84c7cd7179dc0bd /pkg/api/handlers/libpod/networks.go | |
parent | e2d35e55d0ad77fcaca5bbe90276e9c47d514131 (diff) | |
download | podman-7b0155cf780f396f6ffc4455ae5825f5fc14ca79.tar.gz podman-7b0155cf780f396f6ffc4455ae5825f5fc14ca79.tar.bz2 podman-7b0155cf780f396f6ffc4455ae5825f5fc14ca79.zip |
Fix array instead of one elem network http api
Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
Diffstat (limited to 'pkg/api/handlers/libpod/networks.go')
-rw-r--r-- | pkg/api/handlers/libpod/networks.go | 2 |
1 files changed, 1 insertions, 1 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 |