aboutsummaryrefslogtreecommitdiffhomepage
path: root/statuscake/resource_statuscaketest.go
diff options
context:
space:
mode:
Diffstat (limited to 'statuscake/resource_statuscaketest.go')
-rw-r--r--statuscake/resource_statuscaketest.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/statuscake/resource_statuscaketest.go b/statuscake/resource_statuscaketest.go
index 187f711..459c71a 100644
--- a/statuscake/resource_statuscaketest.go
+++ b/statuscake/resource_statuscaketest.go
@@ -44,7 +44,7 @@ func resourceStatusCakeTest() *schema.Resource {
44 }, 44 },
45 45
46 "contact_id": { 46 "contact_id": {
47 Type: schema.TypeString, 47 Type: schema.TypeInt,
48 Optional: true, 48 Optional: true,
49 }, 49 },
50 50
@@ -214,7 +214,7 @@ func CreateTest(d *schema.ResourceData, meta interface{}) error {
214 TestType: d.Get("test_type").(string), 214 TestType: d.Get("test_type").(string),
215 Paused: d.Get("paused").(bool), 215 Paused: d.Get("paused").(bool),
216 Timeout: d.Get("timeout").(int), 216 Timeout: d.Get("timeout").(int),
217 ContactID: d.Get("contact_id").(string), 217 ContactID: d.Get("contact_id").(int),
218 Confirmation: d.Get("confirmations").(int), 218 Confirmation: d.Get("confirmations").(int),
219 Port: d.Get("port").(int), 219 Port: d.Get("port").(int),
220 TriggerRate: d.Get("trigger_rate").(int), 220 TriggerRate: d.Get("trigger_rate").(int),
@@ -353,7 +353,7 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test {
353 test.CheckRate = v.(int) 353 test.CheckRate = v.(int)
354 } 354 }
355 if v, ok := d.GetOk("contact_id"); ok { 355 if v, ok := d.GetOk("contact_id"); ok {
356 test.ContactID = v.(string) 356 test.ContactID = v.(int)
357 } 357 }
358 if v, ok := d.GetOk("test_type"); ok { 358 if v, ok := d.GetOk("test_type"); ok {
359 test.TestType = v.(string) 359 test.TestType = v.(string)