Skip to content

Commit

Permalink
Fixed logic in controllers/humioaggregatealert_controller.go
Browse files Browse the repository at this point in the history
  • Loading branch information
triceras committed Aug 9, 2024
1 parent 25478bc commit a4bd517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/humioaggregatealert_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (r *HumioAggregateAlertReconciler) Reconcile(ctx context.Context, req ctrl.

cluster, err := helpers.NewCluster(ctx, r, haa.Spec.ManagedClusterName, haa.Spec.ExternalClusterName, haa.Namespace, helpers.UseCertManager(), true)
if err != nil || cluster == nil || cluster.Config() == nil {
setStateErr := r.setState(ctx, humiov1alpha1.HumioScheduledSearchStateConfigError, haa)
setStateErr := r.setState(ctx, humiov1alpha1.HumioAggregateAlertStateConfigError, haa)
if setStateErr != nil {
return reconcile.Result{}, r.logErrorAndReturn(setStateErr, "unable to set scheduled search state")
}
Expand Down

0 comments on commit a4bd517

Please sign in to comment.