diff options
author | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2020-07-28 18:17:13 +0900 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-07-31 13:01:47 +0200 |
commit | cae345331635ae57aff99327d5a9bfdfdf0c3a5b (patch) | |
tree | 3285767e16a7c528e7044cf197885064305f14bd /pkg/api | |
parent | 8c6a5286934ebd0144b839223e9dd9a53e4f994a (diff) | |
download | podman-cae345331635ae57aff99327d5a9bfdfdf0c3a5b.tar.gz podman-cae345331635ae57aff99327d5a9bfdfdf0c3a5b.tar.bz2 podman-cae345331635ae57aff99327d5a9bfdfdf0c3a5b.zip |
compat/info.go: TrimPrefix(CGroupsVersion, "v")
For compatibility with Docker: https://github.com/moby/moby/blob/846b7e24ba549a972a2672ffdd88b140da688736/api/swagger.yaml#L4528-L4534
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/handlers/compat/info.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/info.go b/pkg/api/handlers/compat/info.go index 6c44393cc..c0033eab4 100644 --- a/pkg/api/handlers/compat/info.go +++ b/pkg/api/handlers/compat/info.go @@ -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, |