Skip to content

Commit

Permalink
Merge pull request #39 from GDATASoftwareAG/delete_mchines
Browse files Browse the repository at this point in the history
Fix deletion of machines without id
  • Loading branch information
Mattes83 authored Nov 15, 2023
2 parents c256f49 + 2a78354 commit 469179c
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 469179c

Please sign in to comment.