Skip to content

Commit 47d0697

Browse files
authored
Merge branch 'main' into issue/e2e-platform-builds
2 parents e9975b1 + 880163e commit 47d0697

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

controllers/helpers.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,9 @@ func GetGPU(ctx context.Context, client *prismclientv3.Client, peUUID string, gp
904904

905905
func GetGPUsForPE(ctx context.Context, client *prismclientv3.Client, peUUID string) ([]*prismclientv3.GPU, error) {
906906
gpus := make([]*prismclientv3.GPU, 0)
907-
hosts, err := client.V3.ListAllHost(ctx)
907+
// We use ListHost, because it returns all hosts, since the endpoint does not support pagination,
908+
// and ListAllHost incorrectly handles pagination. https://jira.nutanix.com/browse/NCN-110045
909+
hosts, err := client.V3.ListHost(ctx, &prismclientv3.DSMetadata{})
908910
if err != nil {
909911
return gpus, err
910912
}

0 commit comments

Comments
 (0)