another testing fix

This commit is contained in:
Nick Ethier 2021-04-14 10:37:03 -04:00
parent 0a4e298221
commit d7ab0b8a86
1 changed files with 1 additions and 1 deletions

View File

@ -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