fix openpitrix resource sort param

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2019-11-08 17:13:26 +08:00
parent 7a909e574e
commit 981669ca5a
5 changed files with 11 additions and 6 deletions

View File

@@ -83,7 +83,7 @@ func ListApplications(conditions *params.Conditions, limit, offset int, orderBy
if orderBy != "" {
describeClustersRequest.SortKey = &wrappers.StringValue{Value: orderBy}
}
describeClustersRequest.Reverse = &wrappers.BoolValue{Value: reverse}
describeClustersRequest.Reverse = &wrappers.BoolValue{Value: !reverse}
resp, err := client.Cluster().DescribeClusters(openpitrix.SystemContext(), describeClustersRequest)
if err != nil {
klog.Errorln(err)