Merge pull request #399 from hashicorp/f-windows-networking

Use the same network fingerprinter for *nix and windows
This commit is contained in:
Chris Bednarski 2015-11-06 14:04:06 -08:00
commit 24068f445d
2 changed files with 0 additions and 30 deletions

View file

@ -1,5 +1,3 @@
// +build linux darwin
package fingerprint
import (

View file

@ -1,28 +0,0 @@
// +build windows
package fingerprint
import (
"log"
"github.com/hashicorp/nomad/client/config"
"github.com/hashicorp/nomad/nomad/structs"
)
// NetworkFingerprint is used to fingerprint the Network capabilities of a node
type NetworkFingerprint struct {
StaticFingerprinter
logger *log.Logger
}
// NewNetworkFingerprint returns a new NetworkFingerprinter with the given
// logger
func NewNetworkFingerprinter(logger *log.Logger) Fingerprint {
f := &NetworkFingerprint{logger: logger}
return f
}
func (f *NetworkFingerprint) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) {
// return false, because we don't yet support Windows
return false, nil
}