Remove cgroup fingerprinter from non-linux systems.
If someone wants to extend or reuse Cgroup detenction in the future they can move `cgroup_linux.go` to `cgroup.go` and add the relevant build tags. Requested by: @dadgar
This commit is contained in:
parent
9966169596
commit
20d87f1782
|
@ -1,18 +0,0 @@
|
|||
// +build
|
||||
|
||||
package fingerprint
|
||||
|
||||
import (
|
||||
client "github.com/hashicorp/nomad/client/config"
|
||||
"github.com/hashicorp/nomad/nomad/structs"
|
||||
)
|
||||
|
||||
// FindCgroupMountpointDir returns an empty path on non-Linux systems
|
||||
func FindCgroupMountpointDir() (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
// Fingerprint tries to find a valid cgroup moint point
|
||||
func (f *CGroupFingerprint) Fingerprint(cfg *client.Config, node *structs.Node) (bool, error) {
|
||||
return false, nil
|
||||
}
|
Loading…
Reference in a new issue