Fixed namespacing for the cpu arch

This commit is contained in:
Diptanu Choudhury 2017-01-06 14:23:22 -08:00
parent d032893010
commit eb123416c5
2 changed files with 2 additions and 2 deletions

View file

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

View file

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