Fixed namespacing for the cpu arch
This commit is contained in:
parent
d032893010
commit
eb123416c5
|
@ -21,6 +21,6 @@ func NewArchFingerprint(logger *log.Logger) Fingerprint {
|
|||
}
|
||||
|
||||
func (f *ArchFingerprint) Fingerprint(config *client.Config, node *structs.Node) (bool, error) {
|
||||
node.Attributes["arch"] = runtime.GOARCH
|
||||
node.Attributes["cpu.arch"] = runtime.GOARCH
|
||||
return true, nil
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ func TestArchFingerprint(t *testing.T) {
|
|||
if !ok {
|
||||
t.Fatalf("should apply")
|
||||
}
|
||||
if node.Attributes["arch"] == "" {
|
||||
if node.Attributes["cpu.arch"] == "" {
|
||||
t.Fatalf("missing arch")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue