From cd65f133d52562b824818ff149cdd058bbf59c09 Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 21 Sep 2020 12:31:07 -0500 Subject: add missing return for compat kill on an error condition in kill for the compatibility layer, we were missing a return. Signed-off-by: baude --- pkg/api/handlers/compat/containers.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/api') diff --git a/pkg/api/handlers/compat/containers.go b/pkg/api/handlers/compat/containers.go index b1ef08cda..1c2356b92 100644 --- a/pkg/api/handlers/compat/containers.go +++ b/pkg/api/handlers/compat/containers.go @@ -175,6 +175,7 @@ func KillContainer(w http.ResponseWriter, r *http.Request) { err = con.Kill(signal) if err != nil { utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrapf(err, "unable to kill Container %s", name)) + return } // Docker waits for the container to stop if the signal is 0 or -- cgit v1.2.3-54-g00ecf