From 48925fcb880fcd5e32a7b3c5b272b8f87fb97073 Mon Sep 17 00:00:00 2001 From: Chris Kim <30601846+Oats87@users.noreply.github.com> Date: Wed, 9 Dec 2020 11:59:54 -0800 Subject: [PATCH] Simplify checkCgroups function call Co-authored-by: Brian Downs --- pkg/daemons/agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/daemons/agent/agent.go b/pkg/daemons/agent/agent.go index 271b7fcf8a8..d1097ebc8fe 100644 --- a/pkg/daemons/agent/agent.go +++ b/pkg/daemons/agent/agent.go @@ -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