Skip to content

Commit

Permalink
Fix deletion of machines without id
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattes83 committed Nov 15, 2023
1 parent c256f49 commit 2a78354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/ionoscloudmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ func (r *IONOSCloudMachineReconciler) reconcileDelete(ctx *context.MachineContex
}

conditions.MarkFalse(ctx.IONOSCloudCluster, v1alpha1.ServerCreatedCondition, "ServerDeleted", clusterv1.ConditionSeverityInfo, "")
ctrlutil.RemoveFinalizer(ctx.IONOSCloudMachine, v1alpha1.MachineFinalizer)
}
ctrlutil.RemoveFinalizer(ctx.IONOSCloudMachine, v1alpha1.MachineFinalizer)

return reconcile.Result{}, nil
}
Expand Down

0 comments on commit 2a78354

Please sign in to comment.