Small cleanup
This commit is contained in:
parent
ccb932a9f0
commit
73f770fe22
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue