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