From 57bc4189ffd6b4b2a04bb4337203a42ef748e701 Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Thu, 21 Dec 2023 11:27:32 +0100 Subject: [PATCH] Add comment --- pkg/resources/email_notification_integration.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/resources/email_notification_integration.go b/pkg/resources/email_notification_integration.go index d5355c9b84..48f9f99133 100644 --- a/pkg/resources/email_notification_integration.go +++ b/pkg/resources/email_notification_integration.go @@ -119,6 +119,8 @@ func ReadEmailNotificationIntegration(d *schema.ResourceData, meta interface{}) } switch k { case "ALLOWED_RECIPIENTS": + // Empty list returns strange string (it's empty on worksheet level). + // This is a quick workaround, should be fixed with moving the email integration to SDK. r := regexp.MustCompile(`[[:print:]]`) if r.MatchString(v.(string)) { if err := d.Set("allowed_recipients", strings.Split(v.(string), ",")); err != nil {