diff options
author | baude <bbaude@redhat.com> | 2020-09-21 12:31:07 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2020-09-21 12:31:07 -0500 |
commit | cd65f133d52562b824818ff149cdd058bbf59c09 (patch) | |
tree | 4a552a8c9c8c8688789576a691ad2fe9b799c587 /pkg/api/handlers | |
parent | 051912c8e6998047d31cb7b8330ffcf65a4ead40 (diff) | |
download | podman-cd65f133d52562b824818ff149cdd058bbf59c09.tar.gz podman-cd65f133d52562b824818ff149cdd058bbf59c09.tar.bz2 podman-cd65f133d52562b824818ff149cdd058bbf59c09.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>
Diffstat (limited to 'pkg/api/handlers')
-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 |