mirror of
https://github.com/containers/podman.git
synced 2025-11-01 19:21:04 +08:00
Merge pull request #7918 from zhangguanzhang/apiv2-wrong-StopSignal
[apiv2] /containers/$name/json return wrong value in `.Config.StopSignal`
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
@ -385,7 +386,7 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*types.ContainerJSON,
|
||||
MacAddress: "",
|
||||
OnBuild: nil,
|
||||
Labels: l.Labels(),
|
||||
StopSignal: string(l.StopSignal()),
|
||||
StopSignal: strconv.Itoa(int(l.StopSignal())),
|
||||
StopTimeout: &stopTimeout,
|
||||
Shell: nil,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user