Commit b03ddade authored by Chris Kim's avatar Chris Kim Committed by Chris Kim

Simplify checkCgroups function call

parent 81256683
...@@ -176,7 +176,7 @@ func addFeatureGate(current, new string) string { ...@@ -176,7 +176,7 @@ func addFeatureGate(current, new string) string {
return current + "," + new return current + "," + new
} }
func checkCgroups() (kubeletRoot string, runtimeRoot string, hasCFS bool, hasPIDs bool) { func checkCgroups() (kubeletRoot, runtimeRoot string, hasCFS, hasPIDs bool) {
f, err := os.Open("/proc/self/cgroup") f, err := os.Open("/proc/self/cgroup")
if err != nil { if err != nil {
return "", "", false, false return "", "", false, false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment