diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-05 14:06:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 14:06:25 -0500 |
commit | f3b75ebea05edb9abf1f20c638054c552f9237ed (patch) | |
tree | 84c5b81f44a6c6561ecaeea953bc72794757ee2e /pkg/api/handlers/compat | |
parent | 44e6d2002393bbcff7457462bfac3a4f6c91bfa4 (diff) | |
parent | d107c37296d3ad0173e2905ebff0f89fc416e91d (diff) | |
download | podman-f3b75ebea05edb9abf1f20c638054c552f9237ed.tar.gz podman-f3b75ebea05edb9abf1f20c638054c552f9237ed.tar.bz2 podman-f3b75ebea05edb9abf1f20c638054c552f9237ed.zip |
Merge pull request #9635 from rhatdan/stop
podman-remote stop -time 0 does not work
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r-- | pkg/api/handlers/compat/containers_stop.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/compat/containers_stop.go b/pkg/api/handlers/compat/containers_stop.go index 0526865b9..3ae223693 100644 --- a/pkg/api/handlers/compat/containers_stop.go +++ b/pkg/api/handlers/compat/containers_stop.go @@ -39,11 +39,11 @@ func StopContainer(w http.ResponseWriter, r *http.Request) { Ignore: query.Ignore, } if utils.IsLibpodRequest(r) { - if query.LibpodTimeout > 0 { + if _, found := r.URL.Query()["timeout"]; found { options.Timeout = &query.LibpodTimeout } } else { - if query.DockerTimeout > 0 { + if _, found := r.URL.Query()["t"]; found { options.Timeout = &query.DockerTimeout } } |