Skip to content

Commit

Permalink
Merge pull request #1194 from paulzerkel/order-listAllPolicyVirtualMa…
Browse files Browse the repository at this point in the history
…chines

order realized VM results by external_id
  • Loading branch information
annakhm authored Apr 23, 2024
2 parents 4eb43a0 + f54e7a2 commit 0841c98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nsxt/resource_nsxt_policy_vm_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ func listAllPolicyVirtualMachines(context utl.SessionContext, connector client.C
// NOTE: Contrary to the spec, this API does not populate cursor and result count
// parameters, respects cursor input. Therefore we determine end of VM list by
// looking for empty result.
vms, err := client.List(cursor, nil, &boolFalse, nil, nil, &boolFalse, nil)
sortBy := "external_id"
vms, err := client.List(cursor, nil, &boolFalse, nil, nil, &boolFalse, &sortBy)
if err != nil {
return results, err
}
Expand Down

0 comments on commit 0841c98

Please sign in to comment.