Skip to content

Commit

Permalink
Fixed namespacing for the cpu arch
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanu committed Jan 6, 2017
1 parent 9541290 commit 863120c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/fingerprint/arch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion client/fingerprint/arch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

0 comments on commit 863120c

Please sign in to comment.