Unverified Commit 48925fcb authored by Chris Kim's avatar Chris Kim Committed by GitHub
Browse files

Simplify checkCgroups function call


Co-authored-by: default avatarBrian Downs <brian.downs@gmail.com>
parent a3f87a81
......@@ -176,7 +176,7 @@ func addFeatureGate(current, new string) string {
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")
if err != nil {
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