mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
Fix PrintList implementation, add NodeCount method
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user