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

Commit d90b4e2

Browse files
Merge pull request #81 from unprofession-al/fix_contact_creation
Fix false error when creating users with email notifications
2 parents 971648d + b1b6487 commit d90b4e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pingdom/resource_pingdom_contact.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ func getNotificationMethods(d *schema.ResourceData) (pingdom.NotificationTargets
110110
Address: input["address"].(string),
111111
Severity: input["severity"].(string),
112112
}
113+
if email.Severity == "HIGH" {
114+
hasHighSeverity = true
115+
}
116+
if email.Severity == "LOW" {
117+
hasLowSeverity = true
118+
}
113119
base.Email = append(base.Email, email)
114120
}
115121

0 commit comments

Comments
 (0)