Skip to content

Commit 0c31d5f

Browse files
committed
error handling
1 parent 9b529c0 commit 0c31d5f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

controllers/maasmachine_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ func (r *MaasMachineReconciler) reconcileDelete(_ context.Context, machineScope
242242
}
243243
// Fetch details to confirm and delete
244244
if gm, ge := client.Machines().Machine(gid).Get(ctx); ge == nil {
245-
_ = client.Machines().Machine(gm.SystemID()).Delete(ctx)
246245
if derr := client.Machines().Machine(gm.SystemID()).Delete(ctx); derr != nil {
247246
machineScope.Error(derr, "failed to delete guest VM during host release cleanup", "guestSystemID", gm.SystemID())
248247
}

0 commit comments

Comments
 (0)