File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
libcontainer/cgroups/systemd Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ func joinCgroups(c *configs.Cgroup, pid int) error {
395395
396396// systemd represents slice hierarchy using `-`, so we need to follow suit when
397397// generating the path of slice. Essentially, test-a-b.slice becomes
398- // test.slice/test-a.slice/test-a-b.slice.
398+ // / test.slice/test-a.slice/test-a-b.slice.
399399func ExpandSlice (slice string ) (string , error ) {
400400 suffix := ".slice"
401401 // Name has to end with ".slice", but can't be just ".slice".
@@ -421,10 +421,9 @@ func ExpandSlice(slice string) (string, error) {
421421 }
422422
423423 // Append the component to the path and to the prefix.
424- path += prefix + component + suffix + "/"
424+ path += "/" + prefix + component + suffix
425425 prefix += component + "-"
426426 }
427-
428427 return path , nil
429428}
430429
You can’t perform that action at this time.
0 commit comments