Skip to content

Commit

Permalink
Update internal/provider/notification_recipients.go
Browse files Browse the repository at this point in the history
Co-authored-by: Dean Strelau <[email protected]>
  • Loading branch information
jharley and dstrelau authored Feb 15, 2024
1 parent aed373c commit 24e9f86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/provider/notification_recipients.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ func notificationRecipientToModel(r client.NotificationRecipient) models.Notific
Target: types.StringValue(r.Target),
}
if r.Details != nil {
rcpt.Details = make([]models.NotificationRecipientDetailsModel, 1)
rcpt.Details[0].PDSeverity = types.StringValue(string(r.Details.PDSeverity))
rcpt.Details = []models.NotificationRecipientDetailsModel{
{PDSeverity: types.StringValue(string(r.Details.PDSeverity))},
}
}

return rcpt
Expand Down

0 comments on commit 24e9f86

Please sign in to comment.