Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

Fix false error when creating users with email notifications #81

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pingdom/resource_pingdom_contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ func getNotificationMethods(d *schema.ResourceData) (pingdom.NotificationTargets
Address: input["address"].(string),
Severity: input["severity"].(string),
}
if email.Severity == "HIGH" {
hasHighSeverity = true
}
if email.Severity == "LOW" {
hasLowSeverity = true
}
base.Email = append(base.Email, email)
}

Expand Down