Skip to content

Commit

Permalink
Fix IRI NIC preperation
Browse files Browse the repository at this point in the history
Fix wrong comparision in IRI NIC prereration method.
  • Loading branch information
afritzler committed Jan 18, 2024
1 parent 0e37d10 commit 7b246f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (r *MachineReconciler) prepareIRINetworkInterfacesForMachine(
return nil, nil, false, err
}

if len(iriNics) != len(machine.Spec.Volumes) {
if len(iriNics) != len(machine.Spec.NetworkInterfaces) {
expectedNicNames := utilslices.ToSetFunc(machine.Spec.NetworkInterfaces, func(v computev1alpha1.NetworkInterface) string { return v.Name })
actualNicNames := utilslices.ToSetFunc(iriNics, (*iri.NetworkInterface).GetName)
missingNicNames := sets.List(expectedNicNames.Difference(actualNicNames))
Expand Down

0 comments on commit 7b246f8

Please sign in to comment.