Skip to content

Commit

Permalink
Remove call to unitName
Browse files Browse the repository at this point in the history
- Calling unitName incorrectly appends -slice onto the end of the slice cgroup we are looking for
- Tested and can'r see any obvious side effects by removing this call

Signed-off-by: Ashley Sykes ashleysykes01@gmail.com
  • Loading branch information
Ashley Sykes committed Aug 16, 2018
1 parent 2e2922e commit 2596f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func Slice(slice, name string) Path {
slice = defaultSlice
}
return func(subsystem Name) (string, error) {
return filepath.Join(slice, unitName(name)), nil
return filepath.Join(slice, name), nil
}
}

Expand Down

0 comments on commit 2596f33

Please sign in to comment.