Skip to content

Commit

Permalink
fix hypervisor listing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
majewsky committed Oct 18, 2024
1 parent 153a500 commit cad1d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugins/nova/hypervisor_selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func (h MatchingHypervisor) PartialCapacity() PartialCapacity {
// In our clusters, that type breaks because some hypervisors report unexpected
// NULL values on fields that we are not even interested in.
type Hypervisor struct {
ID int `json:"id"`
ID string `json:"id"`
HypervisorHostname string `json:"hypervisor_hostname"`
HypervisorType string `json:"hypervisor_type"`
// LocalGB uint64 `json:"local_gb"`
Expand Down

0 comments on commit cad1d81

Please sign in to comment.