From 863120cc1a27cebdef9534cfc16cc8ce53c8d1a0 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Fri, 6 Jan 2017 14:23:22 -0800 Subject: [PATCH] Fixed namespacing for the cpu arch --- client/fingerprint/arch.go | 2 +- client/fingerprint/arch_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/fingerprint/arch.go b/client/fingerprint/arch.go index 16d8c99a878..71b5352a891 100644 --- a/client/fingerprint/arch.go +++ b/client/fingerprint/arch.go @@ -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 } diff --git a/client/fingerprint/arch_test.go b/client/fingerprint/arch_test.go index f92f9012122..4e4b94a6786 100644 --- a/client/fingerprint/arch_test.go +++ b/client/fingerprint/arch_test.go @@ -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") } }