diff --git a/internal/controller/ionoscloudmachine_controller.go b/internal/controller/ionoscloudmachine_controller.go index 1600453..2dd7734 100644 --- a/internal/controller/ionoscloudmachine_controller.go +++ b/internal/controller/ionoscloudmachine_controller.go @@ -204,7 +204,7 @@ func (r *IONOSCloudMachineReconciler) reconcileDeleteLoadBalancerForwardingRule( lbSpec := ctx.IONOSCloudCluster.Spec.LoadBalancer nic := ctx.IONOSCloudMachine.NicByLan(lbSpec.TargetLanRef.Name) - if nic == nil && nic.PrimaryIP != nil { + if nic == nil || nic.PrimaryIP == nil { return nil }