mirror of
https://github.com/containers/podman.git
synced 2025-05-22 01:27:07 +08:00
compat/info.go: TrimPrefix(CGroupsVersion, "v")
For compatibility with Docker: 846b7e24ba/api/swagger.yaml (L4528-L4534)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@ -119,7 +119,7 @@ func GetInfo(w http.ResponseWriter, r *http.Request) {
|
||||
BuildahVersion: infoData.Host.BuildahVersion,
|
||||
CPURealtimePeriod: sysInfo.CPURealtimePeriod,
|
||||
CPURealtimeRuntime: sysInfo.CPURealtimeRuntime,
|
||||
CgroupVersion: infoData.Host.CGroupsVersion,
|
||||
CgroupVersion: strings.TrimPrefix(infoData.Host.CGroupsVersion, "v"),
|
||||
Rootless: rootless.IsRootless(),
|
||||
SwapFree: infoData.Host.SwapFree,
|
||||
SwapTotal: infoData.Host.SwapTotal,
|
||||
|
Reference in New Issue
Block a user