Merge pull request #399 from hashicorp/f-windows-networking
Use the same network fingerprinter for *nix and windows
This commit is contained in:
commit
24068f445d
|
@ -1,5 +1,3 @@
|
|||
// +build linux darwin
|
||||
|
||||
package fingerprint
|
||||
|
||||
import (
|
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue