Commit 2f837e70 authored by better0332's avatar better0332 Committed by GitHub

fix FakeNodeHandler List()

parent e2f39fca
...@@ -134,7 +134,7 @@ func (m *FakeNodeHandler) List(opts api.ListOptions) (*api.NodeList, error) { ...@@ -134,7 +134,7 @@ func (m *FakeNodeHandler) List(opts api.ListOptions) (*api.NodeList, error) {
} }
} }
for i := 0; i < len(m.CreatedNodes); i++ { for i := 0; i < len(m.CreatedNodes); i++ {
if !contains(m.Existing[i], m.DeletedNodes) && !contains(m.CreatedNodes[i], nodes) { if !contains(m.CreatedNodes[i], m.DeletedNodes) && !contains(m.CreatedNodes[i], nodes) {
nodes = append(nodes, m.CreatedNodes[i]) nodes = append(nodes, m.CreatedNodes[i])
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment