Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-asawicki committed Dec 21, 2023
1 parent 13d77ca commit 57bc418
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/resources/email_notification_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 57bc418

Please sign in to comment.