diff options
author | baude <bbaude@redhat.com> | 2020-09-21 12:31:07 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-09-25 11:02:12 -0400 |
commit | 8252fd24c1f71e3c87f84fdf12474629d939ce34 (patch) | |
tree | 6da8de3c806a3614a4b4951b0912d1ef90eebe5d | |
parent | 29215ec523a1d7464cd39b7c68cb12d1734bcc1d (diff) | |
download | podman-8252fd24c1f71e3c87f84fdf12474629d939ce34.tar.gz podman-8252fd24c1f71e3c87f84fdf12474629d939ce34.tar.bz2 podman-8252fd24c1f71e3c87f84fdf12474629d939ce34.zip |
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 <bbaude@redhat.com>
-rw-r--r-- | pkg/api/handlers/compat/containers.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |