Fix PrintList implementation, add NodeCount method

This commit is contained in:
Christoph Kluge
2023-04-06 11:38:10 +02:00
parent 2401a2b940
commit f0cbb8c5dc
2 changed files with 46 additions and 18 deletions

View File

@@ -287,8 +287,7 @@ func (r *subClusterResolver) NumberOfNodes(ctx context.Context, obj *schema.SubC
if err != nil {
return 0, err
}
stringList := nodeList.PrintList()
return len(stringList), nil
return nodeList.NodeCount(), nil
}
// Cluster returns generated.ClusterResolver implementation.