Skip to content

Commit 4a65d30

Browse files
committed
Use controllersFile constant
1 parent 498360c commit 4a65d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runsc/cgroup/cgroup_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type cgroupV2 struct {
7878
}
7979

8080
func newCgroupV2(mountpoint, group string, useSystemd bool) (Cgroup, error) {
81-
data, err := os.ReadFile(filepath.Join(mountpoint, "cgroup.controllers"))
81+
data, err := os.ReadFile(filepath.Join(mountpoint, controllersFile))
8282
if err != nil {
8383
return nil, err
8484
}

0 commit comments

Comments
 (0)