Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #67 from drubin/fix-update-contact
Browse files Browse the repository at this point in the history
Fix setting threshold and recurrence on update
  • Loading branch information
louy authored Dec 16, 2019
2 parents 1ec4790 + 71f1810 commit 078e134
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uptimerobot/resource_uptimerobot_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ func resourceMonitorUpdate(d *schema.ResourceData, m interface{}) error {
req.AlertContacts = make([]uptimerobotapi.MonitorRequestAlertContact, len(d.Get("alert_contact").([]interface{})))
for k, v := range d.Get("alert_contact").([]interface{}) {
req.AlertContacts[k] = uptimerobotapi.MonitorRequestAlertContact{
ID: v.(map[string]interface{})["id"].(string),
ID: v.(map[string]interface{})["id"].(string),
Threshold: v.(map[string]interface{})["threshold"].(int),
Recurrence: v.(map[string]interface{})["recurrence"].(int),
}
}

Expand Down

0 comments on commit 078e134

Please sign in to comment.