Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Sep 20, 2021
1 parent 6b14dc8 commit d4eed39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pingdom/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func init() {

func TestProvider(t *testing.T) {
if err := Provider().InternalValidate(); err != nil {
t.Fatalf("err: %#v", err)
t.Fatalf("err: %s", err)
}
}

Expand Down
6 changes: 3 additions & 3 deletions pingdom/resource_pingdom_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func resourcePingdomCheck() *schema.Resource {

"resolution": {
Type: schema.TypeInt,
Required: true,
Optional: true,
ForceNew: false,
Default: 5,
ValidateFunc: validation.IntInSlice([]int{1, 5, 15, 30, 60}),
Expand Down Expand Up @@ -266,7 +266,7 @@ func checkForResource(d *schema.ResourceData) (pingdom.Check, error) {
checkParams.SendNotificationWhenDown = v.(int)
}

if v, ok := d.GetOk("notifyagainevery"); ok {
if v, ok := d.GetOkExists("notifyagainevery"); ok {
checkParams.NotifyAgainEvery = v.(int)
}

Expand Down Expand Up @@ -360,7 +360,7 @@ func checkForResource(d *schema.ResourceData) (pingdom.Check, error) {
checkParams.VerifyCertificate = v.(bool)
}

if v, ok := d.GetOk("ssl_down_days_before"); ok {
if v, ok := d.GetOkExists("ssl_down_days_before"); ok {
checkParams.SSLDownDaysBefore = v.(int)
}

Expand Down

0 comments on commit d4eed39

Please sign in to comment.