aboutsummaryrefslogtreecommitdiffhomepage
path: root/statuscake/resource_statuscaketest.go
diff options
context:
space:
mode:
authorAndrew N Golovkov <andrew@callstats.io>2018-01-17 16:55:18 +0200
committerAndrew N Golovkov <andrew@callstats.io>2018-01-17 16:55:18 +0200
commitc9458806c73b69e6af47eddd83391197b6d2a641 (patch)
treebc6751b5b5307b248cb7fb1f99b129136c230133 /statuscake/resource_statuscaketest.go
parentb01919994f2f0113f00c3afb931cb5a278d7ab0b (diff)
downloadterraform-provider-statuscake-c9458806c73b69e6af47eddd83391197b6d2a641.tar.gz
terraform-provider-statuscake-c9458806c73b69e6af47eddd83391197b6d2a641.tar.zst
terraform-provider-statuscake-c9458806c73b69e6af47eddd83391197b6d2a641.zip
merge changes from https://github.com/DreamItGetIT/statuscake/pull/24 to vendor directory
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)