Skip to content

Commit 025bdc5

Browse files
authored
Merge pull request #681 from NetApp/machine-deletion
restore machine deletion
2 parents 5aaa4d0 + 0525815 commit 025bdc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/vspheremachine_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@ func (r machineReconciler) Reconcile(req ctrl.Request) (_ ctrl.Result, reterr er
182182
}
183183
}()
184184

185-
// Handle deleted clusters
186-
if !vsphereCluster.DeletionTimestamp.IsZero() {
185+
// Handle deleted machines
186+
if !vsphereMachine.ObjectMeta.DeletionTimestamp.IsZero() {
187187
return r.reconcileDelete(machineContext)
188188
}
189189

190-
// Handle non-deleted clusters
190+
// Handle non-deleted machines
191191
return r.reconcileNormal(machineContext)
192192
}
193193

0 commit comments

Comments
 (0)