mirror of
https://github.com/kemko/nomad.git
synced 2026-01-16 15:25:41 +03:00
refactor Fingerprint to request/response construct
This commit is contained in:
@@ -5,8 +5,6 @@ package fingerprint
|
||||
import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/nomad/nomad/structs"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -49,8 +47,9 @@ func NewCGroupFingerprint(logger *log.Logger) Fingerprint {
|
||||
|
||||
// clearCGroupAttributes clears any node attributes related to cgroups that might
|
||||
// have been set in a previous fingerprint run.
|
||||
func (f *CGroupFingerprint) clearCGroupAttributes(n *structs.Node) {
|
||||
delete(n.Attributes, "unique.cgroup.mountpoint")
|
||||
func (f *CGroupFingerprint) clearCGroupAttributes(n map[string]string) map[string]string {
|
||||
n["unique.cgroup.mountpoint"] = ""
|
||||
return n
|
||||
}
|
||||
|
||||
// Periodic determines the interval at which the periodic fingerprinter will run.
|
||||
|
||||
Reference in New Issue
Block a user