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