From 97eb2d3a7ff299a2703d586e25409b7069ef742c Mon Sep 17 00:00:00 2001 From: Martin Necas Date: Mon, 27 Nov 2023 10:11:41 +0100 Subject: [PATCH] Update order of the machinetypes to be by category and size --- pkg/provider/machine_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provider/machine_types.go b/pkg/provider/machine_types.go index 257c3aa7..d8ed3520 100644 --- a/pkg/provider/machine_types.go +++ b/pkg/provider/machine_types.go @@ -31,7 +31,7 @@ func getMachineTypes(client *cmv1.Client, provider string) (machineTypes []*cmv1 var response *cmv1.MachineTypesListResponse response, err = collection.List(). Search(fmt.Sprintf("cloud_provider.id = '%s'", provider)). - Order("size desc"). + Order("size desc, category desc"). Page(page). Size(size). Send()