fix search node with invalid name bug (#2902)
Signed-off-by: Jeff <jeffzhang@yunify.com>
This commit is contained in:
@@ -115,7 +115,7 @@ func (c nodesGetter) List(_ string, q *query.Query) (*api.ListResult, error) {
|
||||
}
|
||||
}
|
||||
|
||||
var result []interface{}
|
||||
var result = make([]interface{}, 0)
|
||||
for _, node := range selectedNodes {
|
||||
c.annotateNode(node, nonTerminatedPodsList)
|
||||
result = append(result, node)
|
||||
|
||||
Reference in New Issue
Block a user