mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +08:00
podman-remote stop -time 0 does not work
This patch will allow users to pass in the time 0. Currently the timeout will take 10 seconds if user passes in the 0 flag. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user