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 @@ -390,7 +390,7 @@ func joinCgroups(c *configs.Cgroup, pid int) error {
390390
391391// systemd represents slice hierarchy using `-`, so we need to follow suit when
392392// generating the path of slice. Essentially, test-a-b.slice becomes
393- // test.slice/test-a.slice/test-a-b.slice.
393+ // / test.slice/test-a.slice/test-a-b.slice.
394394func ExpandSlice (slice string ) (string , error ) {
395395 suffix := ".slice"
396396 // Name has to end with ".slice", but can't be just ".slice".
@@ -416,10 +416,9 @@ func ExpandSlice(slice string) (string, error) {
416416 }
417417
418418 // Append the component to the path and to the prefix.
419- path += prefix + component + suffix + "/"
419+ path += "/" + prefix + component + suffix
420420 prefix += component + "-"
421421 }
422-
423422 return path , nil
424423}
425424
You can’t perform that action at this time.
0 commit comments