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:
Sean Chittenden 2016-07-11 12:16:56 -07:00
parent 9966169596
commit 20d87f1782
No known key found for this signature in database
GPG key ID: 4EBC9DC16C2E5E16

View file

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