fix error message handling activating smtp
[ZITADOPER-7]
This commit is contained in:
@@ -584,8 +584,10 @@ func (r *ZitadelClusterReconciler) reconcileSMTPConfig(ctx context.Context, zita
|
||||
if _, err := adminClient.ActivateSMTPConfig(ctx, &adm.ActivateSMTPConfigRequest{
|
||||
Id: smtpId,
|
||||
}); err != nil {
|
||||
if !strings.Contains(err.Error(), "AlreadyActive") {
|
||||
return ctrl.Result{}, fmt.Errorf("Error activating SMTP config: %v", err)
|
||||
}
|
||||
}
|
||||
patch := client.MergeFrom(zitadel.DeepCopy())
|
||||
zitadel.Status.SMTPProviderId = smtpId
|
||||
return ctrl.Result{}, r.Status().Patch(ctx, zitadel, patch)
|
||||
|
||||
Reference in New Issue
Block a user