summaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-04-19 08:46:37 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-04-20 15:56:45 -0400
commit659dc7843c560c9386fbc3e54ad860c3f2ef2940 (patch)
tree90fbd03d2c07aaa11d8a86c5c03338824d982a6d /pkg/api/handlers
parent2a32fc3e403e4b70fb68fda564cbdf33b7dd5326 (diff)
downloadpodman-659dc7843c560c9386fbc3e54ad860c3f2ef2940.tar.gz
podman-659dc7843c560c9386fbc3e54ad860c3f2ef2940.tar.bz2
podman-659dc7843c560c9386fbc3e54ad860c3f2ef2940.zip
podman-remote should show podman.sock info
Currently podman-remote info does not show socket information. Fixes: https://github.com/containers/podman/issues/10077 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/libpod/info.go4
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