diff options
author | Matthew Heon <matthew.heon@pm.me> | 2020-03-23 16:18:17 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-03-26 13:33:33 -0400 |
commit | e42cbdd1b2f6788a814d6aa1838111989cd424ad (patch) | |
tree | 5705b12daaa8324c659717e72dfa523f83f5785b /pkg/api | |
parent | 0c40b62c77d8f7dba8e73ac3ced0de536ec220d5 (diff) | |
download | podman-e42cbdd1b2f6788a814d6aa1838111989cd424ad.tar.gz podman-e42cbdd1b2f6788a814d6aa1838111989cd424ad.tar.bz2 podman-e42cbdd1b2f6788a814d6aa1838111989cd424ad.zip |
Add bindings for Container Exec Create + Inspect
Also adds some basic tests for these two. More tests are needed
but will have to wait for state to be finished.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/handlers/compat/exec.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/exec.go b/pkg/api/handlers/compat/exec.go index 1fa50d23b..ec1a8ac96 100644 --- a/pkg/api/handlers/compat/exec.go +++ b/pkg/api/handlers/compat/exec.go @@ -12,6 +12,7 @@ import ( "github.com/containers/libpod/pkg/api/handlers/utils" "github.com/gorilla/mux" "github.com/pkg/errors" + "github.com/sirupsen/logrus" ) // ExecCreateHandler creates an exec session for a given container. @@ -88,6 +89,8 @@ func ExecInspectHandler(w http.ResponseWriter, r *http.Request) { return } + logrus.Debugf("Inspecting exec session %s of container %s", sessionID, sessionCtr.ID()) + session, err := sessionCtr.ExecSession(sessionID) if err != nil { utils.InternalServerError(w, errors.Wrapf(err, "error retrieving exec session %s from container %s", sessionID, sessionCtr.ID())) |