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

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
louy committed Jun 4, 2018
1 parent 96edf1c commit 85a87e2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions uptimerobot/resource_uptimerobot_status_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ func resourceStatusPage() *schema.Resource {
Type: schema.TypeInt,
},
PromoteSingle: true,
// DefaultFunc: func() (interface{}, error) {
// return []int{0}, nil
// },
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
if k == "monitors.#" && old == "1" && new == "0" && d.Get("monitors.0").(int) == 0 {
return true
}
return false
},
},
"dns_address": &schema.Schema{
Type: schema.TypeString,
Expand Down

0 comments on commit 85a87e2

Please sign in to comment.