aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorstack72 <public@paulstack.co.uk>2017-01-17 16:11:23 +0000
committerstack72 <public@paulstack.co.uk>2017-01-17 16:11:23 +0000
commitd2c3318b56d0a67cb7382e39672667456797b35c (patch)
tree11b2c7dc2ff7dc18ec5226e14cd5762f5d69e7dd
parentb581540543290cbcd9b0e07ef93fec8b1d24b5c2 (diff)
parent312d16361a769314812c256f7433bcb0f2c72193 (diff)
downloadterraform-provider-statuscake-d2c3318b56d0a67cb7382e39672667456797b35c.tar.gz
terraform-provider-statuscake-d2c3318b56d0a67cb7382e39672667456797b35c.tar.zst
terraform-provider-statuscake-d2c3318b56d0a67cb7382e39672667456797b35c.zip
Merge branch 'statuscake_adding_contact_group' of https://github.com/ldjohnson/terraform into ldjohnson-statuscake_adding_contact_group
-rw-r--r--resource_statuscaketest.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/resource_statuscaketest.go b/resource_statuscaketest.go
index 6c340d8..0cdc76d 100644
--- a/resource_statuscaketest.go
+++ b/resource_statuscaketest.go
@@ -33,6 +33,11 @@ func resourceStatusCakeTest() *schema.Resource {
33 Required: true, 33 Required: true,
34 }, 34 },
35 35
36 "contact_id": &schema.Schema{
37 Type: schema.TypeInt,
38 Optional: true,
39 },
40
36 "check_rate": &schema.Schema{ 41 "check_rate": &schema.Schema{
37 Type: schema.TypeInt, 42 Type: schema.TypeInt,
38 Optional: true, 43 Optional: true,
@@ -53,10 +58,6 @@ func resourceStatusCakeTest() *schema.Resource {
53 Type: schema.TypeInt, 58 Type: schema.TypeInt,
54 Computed: true, 59 Computed: true,
55 }, 60 },
56 "contact_id": &schema.Schema{
57 Type: schema.TypeInt,
58 Optional: true,
59 },
60 "confirmations": &schema.Schema{ 61 "confirmations": &schema.Schema{
61 Type: schema.TypeInt, 62 Type: schema.TypeInt,
62 Optional: true, 63 Optional: true,
@@ -161,6 +162,9 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test {
161 if v, ok := d.GetOk("check_rate"); ok { 162 if v, ok := d.GetOk("check_rate"); ok {
162 test.CheckRate = v.(int) 163 test.CheckRate = v.(int)
163 } 164 }
165 if v, ok := d.GetOk("contact_id"); ok {
166 test.ContactID = v.(int)
167 }
164 if v, ok := d.GetOk("test_type"); ok { 168 if v, ok := d.GetOk("test_type"); ok {
165 test.TestType = v.(string) 169 test.TestType = v.(string)
166 } 170 }