From b94e375755214d034a5b24c04631af3cc9a4ab9e Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 9 Jun 2025 14:58:54 -0700 Subject: [PATCH] Lint --- controllers/azurestackhcivirtualmachine_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/azurestackhcivirtualmachine_controller.go b/controllers/azurestackhcivirtualmachine_controller.go index e49c1069..6ae5d7a4 100644 --- a/controllers/azurestackhcivirtualmachine_controller.go +++ b/controllers/azurestackhcivirtualmachine_controller.go @@ -210,14 +210,14 @@ func (r *AzureStackHCIVirtualMachineReconciler) getOrCreate(virtualMachineScope case mocerrors.OutOfCapacity.Error(): conditions.MarkFalse(virtualMachineScope.AzureStackHCIVirtualMachine, infrav1.VMRunningCondition, infrav1.OutOfCapacityReason, clusterv1.ConditionSeverityError, err.Error()) case mocerrors.OutOfNodeCapacity.Error(): - conditions.MarkFalse(virtualMachineScope.AzureStackHCIVirtualMachine, infrav1.VMRunningCondition, infrav1.OutOfNodeCapacityReason, clusterv1.ConditionSeverityWarning, err.Error()) + conditions.MarkFalse(virtualMachineScope.AzureStackHCIVirtualMachine, infrav1.VMRunningCondition, infrav1.OutOfNodeCapacityReason, clusterv1.ConditionSeverityWarning, err.Error()) case mocerrors.NotFound.Error(): // "NotFound" fallthrough // Internally, NotFound is a legacy error and returns the error string instead. case moccodes.NotFound.String(): // "Not Found" if mocerrors.IsPathNotFound(err) { conditions.MarkFalse(virtualMachineScope.AzureStackHCIVirtualMachine, infrav1.VMRunningCondition, infrav1.PathNotFoundReason, clusterv1.ConditionSeverityError, err.Error()) - } else { + } else { conditions.MarkFalse(virtualMachineScope.AzureStackHCIVirtualMachine, infrav1.VMRunningCondition, infrav1.NotFoundReason, clusterv1.ConditionSeverityError, err.Error()) } default: