summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/containers.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-06 21:27:52 +0200
committerGitHub <noreply@github.com>2020-04-06 21:27:52 +0200
commit7d95e0c47ad7203c6ad3e5a0441a309e5368dc52 (patch)
tree94f380670abc8b55885d37f79c5232222d2e8b43 /pkg/api/handlers/compat/containers.go
parent0519fa0f1e1697cd52f5ceb388117b64eefa7fc2 (diff)
parente20ecc733c878f0c4b67a21204f0d5ae11929bf0 (diff)
downloadpodman-7d95e0c47ad7203c6ad3e5a0441a309e5368dc52.tar.gz
podman-7d95e0c47ad7203c6ad3e5a0441a309e5368dc52.tar.bz2
podman-7d95e0c47ad7203c6ad3e5a0441a309e5368dc52.zip
Merge pull request #5507 from baude/newinfo
refactor info
Diffstat (limited to 'pkg/api/handlers/compat/containers.go')
-rw-r--r--pkg/api/handlers/compat/containers.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/api/handlers/compat/containers.go b/pkg/api/handlers/compat/containers.go
index 2ce113d30..c53af0f26 100644
--- a/pkg/api/handlers/compat/containers.go
+++ b/pkg/api/handlers/compat/containers.go
@@ -94,15 +94,9 @@ func ListContainers(w http.ResponseWriter, r *http.Request) {
}
}
// TODO filters still need to be applied
- infoData, err := runtime.Info()
- if err != nil {
- utils.InternalServerError(w, errors.Wrapf(err, "Failed to obtain system info"))
- return
- }
-
var list = make([]*handlers.Container, len(containers))
for i, ctnr := range containers {
- api, err := handlers.LibpodToContainer(ctnr, infoData, query.Size)
+ api, err := handlers.LibpodToContainer(ctnr, query.Size)
if err != nil {
utils.InternalServerError(w, err)
return