Skip to content

Commit cad1d81

Browse files
committed
fix hypervisor listing
By increasing the Nova API microversion in the previous commit, the hypervisor "id" field has changed from a number to a UUID. We are not using this value anywhere, but whatever.
1 parent 153a500 commit cad1d81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/plugins/nova/hypervisor_selection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (h MatchingHypervisor) PartialCapacity() PartialCapacity {
258258
// In our clusters, that type breaks because some hypervisors report unexpected
259259
// NULL values on fields that we are not even interested in.
260260
type Hypervisor struct {
261-
ID int `json:"id"`
261+
ID string `json:"id"`
262262
HypervisorHostname string `json:"hypervisor_hostname"`
263263
HypervisorType string `json:"hypervisor_type"`
264264
// LocalGB uint64 `json:"local_gb"`

0 commit comments

Comments
 (0)