Skip to content

Commit 6e038fd

Browse files
Timo Reimannprksu
andauthored
Update controllers/domachine_controller.go
Co-authored-by: Ahmad Nurus S. <[email protected]>
1 parent e82833b commit 6e038fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/domachine_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ func (r *DOMachineReconciler) reconcile(ctx context.Context, machineScope *scope
227227
if err != nil {
228228
err = errors.Errorf("Failed to create droplet instance for DOMachine %s/%s: %v", domachine.Namespace, domachine.Name, err)
229229
r.Recorder.Event(domachine, corev1.EventTypeWarning, "InstanceCreatingError", err.Error())
230+
machineScope.SetInstanceStatus(infrav1.DOResourceStatusErrored)
230231
return reconcile.Result{}, err
231232
}
232233
r.Recorder.Eventf(domachine, corev1.EventTypeNormal, "InstanceCreated", "Created new droplet instance - %s", droplet.Name)

0 commit comments

Comments
 (0)