Skip to content

Commit

Permalink
Merge pull request #2161 from hashicorp/f-cpu-arch
Browse files Browse the repository at this point in the history
Fixed namespacing for the cpu arch
  • Loading branch information
diptanu authored Jan 6, 2017
2 parents 9541290 + 863120c commit a9cc1a8
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 a9cc1a8

Please sign in to comment.