Small cleanup

This commit is contained in:
Alex Dadgar 2016-01-21 11:31:32 -08:00
parent ccb932a9f0
commit 73f770fe22
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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