diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-21 08:05:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 08:05:35 -0400 |
commit | 544c3156657e078cef297623842f79cb72dc32c6 (patch) | |
tree | 21431acac4d8c92fb26276680de283e2d0730982 /pkg/api/handlers/libpod | |
parent | 41677b192aac6ae2849aa792e4ded856773712fd (diff) | |
parent | 659dc7843c560c9386fbc3e54ad860c3f2ef2940 (diff) | |
download | podman-544c3156657e078cef297623842f79cb72dc32c6.tar.gz podman-544c3156657e078cef297623842f79cb72dc32c6.tar.bz2 podman-544c3156657e078cef297623842f79cb72dc32c6.zip |
Merge pull request #10080 from rhatdan/remote
podman-remote should show podman.sock info
Diffstat (limited to 'pkg/api/handlers/libpod')
-rw-r--r-- | pkg/api/handlers/libpod/info.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/info.go b/pkg/api/handlers/libpod/info.go index 546609451..8868d563d 100644 --- a/pkg/api/handlers/libpod/info.go +++ b/pkg/api/handlers/libpod/info.go @@ -5,11 +5,13 @@ import ( "github.com/containers/podman/v3/libpod" "github.com/containers/podman/v3/pkg/api/handlers/utils" + "github.com/containers/podman/v3/pkg/domain/infra/abi" ) func GetInfo(w http.ResponseWriter, r *http.Request) { runtime := r.Context().Value("runtime").(*libpod.Runtime) - info, err := runtime.Info() + containerEngine := abi.ContainerEngine{Libpod: runtime} + info, err := containerEngine.Info(r.Context()) if err != nil { utils.InternalServerError(w, err) return |