From 73f770fe22f60ead444a53c54d7972709d4c1805 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 21 Jan 2016 11:31:32 -0800 Subject: [PATCH] Small cleanup --- nomad/structs/node_class.go | 2 +- nomad/structs/node_class_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nomad/structs/node_class.go b/nomad/structs/node_class.go index 74b6d04e6..704810af9 100644 --- a/nomad/structs/node_class.go +++ b/nomad/structs/node_class.go @@ -36,7 +36,7 @@ func (n Node) HashInclude(field string, v interface{}) (bool, error) { return false, nil case "Drain", "Status", "StatusDescription": // Set by server return false, nil - case "ComputedClass", "UniqueAttributes": // Part of computed node class + case "ComputedClass": // Part of computed node class return false, nil case "CreateIndex", "ModifyIndex": // Raft indexes return false, nil diff --git a/nomad/structs/node_class_test.go b/nomad/structs/node_class_test.go index 5891bfda7..da15ca455 100644 --- a/nomad/structs/node_class_test.go +++ b/nomad/structs/node_class_test.go @@ -132,7 +132,7 @@ func TestNode_ComputedClass_Attr(t *testing.T) { old = n.ComputedClass // Add an ignored attribute and compute the class again. - n.Attributes["network.ip-address"] = "hello world" + n.Attributes["storage.bytes-foo"] = "hello world" if err := n.ComputeClass(); err != nil { t.Fatalf("ComputeClass() failed: %v", err) }