Skip to content

Commit

Permalink
Fix *-broker status (#869)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Frank <[email protected]>
  • Loading branch information
lukasfrank authored Sep 22, 2023
1 parent de8af59 commit afb443d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion broker/machinebroker/server/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (s *Server) Status(ctx context.Context, req *ori.StatusRequest) (*ori.Statu
availableOnmetalMachineClasses := s.filterOnmetalMachineClasses(availableOnmetalMachineClassNames, onmetalMachineClassList.Items)
machineClassStatus := make([]*ori.MachineClassStatus, 0, len(availableOnmetalMachineClasses))
for _, onmetalMachineClass := range availableOnmetalMachineClasses {
quantity, ok := machineClassQuantity[onmetalMachineClass.Name]
quantity, ok := machineClassQuantity[string(corev1alpha1.ClassCountFor(corev1alpha1.ClassTypeMachineClass, onmetalMachineClass.Name))]
if !ok {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion broker/volumebroker/server/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (s *Server) Status(ctx context.Context, req *ori.StatusRequest) (*ori.Statu
availableOnmetalVolumeClasses := s.filterOnmetalVolumeClasses(availableOnmetalVolumeClassNames, onmetalVolumeClassList.Items)
volumeClassStatus := make([]*ori.VolumeClassStatus, 0, len(availableOnmetalVolumeClasses))
for _, onmetalVolumeClass := range availableOnmetalVolumeClasses {
quantity, ok := volumeClassQuantity[onmetalVolumeClass.Name]
quantity, ok := volumeClassQuantity[string(corev1alpha1.ClassCountFor(corev1alpha1.ClassTypeVolumeClass, onmetalVolumeClass.Name))]
if !ok {
continue
}
Expand Down

0 comments on commit afb443d

Please sign in to comment.