Files
nomad/client/lib/cgroupslib/default.go
Piotr Kazmierczak 53ef6391a5 drivers/docker: fix a hostConfigMemorySwappiness panic (#18238)
cgroupslib.MaybeDisableMemorySwappiness returned an incorrect type, and was
incorrectly typecast to int64 causing a panic on non-linux and non-windows hosts.
2023-08-17 14:45:31 +02:00

17 lines
355 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
//go:build !linux
package cgroupslib
// LinuxResourcesPath does nothing on non-Linux systems
func LinuxResourcesPath(string, string) string {
return ""
}
// MaybeDisableMemorySwappiness does nothing on non-Linux systems
func MaybeDisableMemorySwappiness() *uint64 {
return nil
}