Skip to content

Commit 034dc37

Browse files
committed
update comments for grammar error
1 parent 923483e commit 034dc37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/cloudstackmachine_controller.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ func (r *CloudStackMachineReconciliationRunner) GetOrCreateVMInstance() (retRes
223223
r.Recorder.Eventf(r.ReconciliationSubject, "Warning", "Creating", CSMachineCreationFailed, err.Error())
224224
}
225225
if err == nil && !controllerutil.ContainsFinalizer(r.ReconciliationSubject, infrav1.MachineFinalizer) { // Fetched or Created?
226-
// adding a finalizer will require CPAC reconcile-delete trying to destroy associated VM through instanceID,
227-
// so if err is not nil, which means it could not get associated VM through instanceID or name, we should not add finalizer to CloudStackMachine,
228-
// otherwise, reconciler-delete will be stuck trying to wait instanceID to ba available.
226+
// Adding a finalizer will make reconcile-delete try to destroy the associated VM through instanceID.
227+
// If err is not nil, it means CAPC could not get an associated VM through instanceID or name, so we should not add a finalizer to this CloudStackMachine,
228+
// Otherwise, reconcile-delete will be stuck trying to wait for instanceID to be available.
229229
controllerutil.AddFinalizer(r.ReconciliationSubject, infrav1.MachineFinalizer)
230230
r.Recorder.Eventf(r.ReconciliationSubject, "Normal", "Created", CSMachineCreationSuccess)
231231
r.Log.Info(CSMachineCreationSuccess, "instanceStatus", r.ReconciliationSubject.Status)

0 commit comments

Comments
 (0)