summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-22 21:04:37 +0000
committerGitHub <noreply@github.com>2020-09-22 21:04:37 +0000
commit4c48c71729ba61586852ddc2342b56c6086fb424 (patch)
treec5c8aed89815f09cf278da542d8686d1ae8b74c8 /pkg
parent2270be1871bbf77ed148a623231d41638975572d (diff)
parentcd65f133d52562b824818ff149cdd058bbf59c09 (diff)
downloadpodman-4c48c71729ba61586852ddc2342b56c6086fb424.tar.gz
podman-4c48c71729ba61586852ddc2342b56c6086fb424.tar.bz2
podman-4c48c71729ba61586852ddc2342b56c6086fb424.zip
Merge pull request #7712 from baude/killreturn
add missing return for compat kill
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/compat/containers.go1
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