diff --git a/controllers/hetznerbaremetalhost_controller.go b/controllers/hetznerbaremetalhost_controller.go index 4629dcad5..aafade2a4 100644 --- a/controllers/hetznerbaremetalhost_controller.go +++ b/controllers/hetznerbaremetalhost_controller.go @@ -181,16 +181,15 @@ func (r *HetznerBareMetalHostReconciler) reconcileSelectedStates(ctx context.Con // Handle StateNone: check whether needs to be provisioned or deleted. case infrav1.StateNone: if !bmHost.DeletionTimestamp.IsZero() { - if !conditions.Has(bmHost, infrav1.HostReadyCondition) { - conditions.MarkFalse( - bmHost, - infrav1.HostReadyCondition, - infrav1.DeletionInProgressReason, - clusterv1.ConditionSeverityInfo, - "Host is not ready because it is being deleted", - ) - conditions.SetSummary(bmHost) - } + conditions.MarkFalse( + bmHost, + infrav1.HostReadyCondition, + infrav1.DeletionInProgressReason, + clusterv1.ConditionSeverityInfo, + "Host is not ready because it is being deleted", + ) + conditions.SetSummary(bmHost) + if bmHost.Spec.ConsumerRef == nil { bmHost.Spec.Status.ProvisioningState = infrav1.StateDeleting }