Skip to content

Commit

Permalink
compat/info.go: TrimPrefix(CGroupsVersion, "v")
Browse files Browse the repository at this point in the history
  • Loading branch information
AkihiroSuda authored and vrothberg committed Jul 31, 2020
1 parent 8c6a528 commit cae3453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/handlers/compat/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cae3453

Please sign in to comment.