mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-10 22:03:23 +00:00
Merge pull request #2675 from fengwang666/cgroup-bug-fix
runtime: fix empty cgroup path validation error
This commit is contained in:
commit
9ea78ac386
@ -26,7 +26,7 @@ const DefaultCgroupPath = "/vc"
|
|||||||
|
|
||||||
func RenameCgroupPath(path string) (string, error) {
|
func RenameCgroupPath(path string) (string, error) {
|
||||||
if path == "" {
|
if path == "" {
|
||||||
return "", fmt.Errorf("Cgroup path is empty")
|
path = DefaultCgroupPath
|
||||||
}
|
}
|
||||||
|
|
||||||
cgroupPathDir := filepath.Dir(path)
|
cgroupPathDir := filepath.Dir(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user