From d7ab0b8a865c96c9dabaf74f40a13f999572300c Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Wed, 14 Apr 2021 10:37:03 -0400 Subject: [PATCH] another testing fix --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 16ac649b2..c2fb094c8 100644 --- a/client/client.go +++ b/client/client.go @@ -640,7 +640,7 @@ func (c *Client) init() error { c.logger.Info("using alloc directory", "alloc_dir", c.config.AllocDir) // Ensure cgroups are created on linux platform - if runtime.GOOS == "linux" { + if runtime.GOOS == "linux" && c.cpusetManager != nil { err := c.cpusetManager.Init() if err != nil { // if the client cannot initialize the cgroup then reserved cores will not be reported and the cpuset manager