diff options
Diffstat (limited to 'resource_statuscaketest.go')
-rw-r--r-- | resource_statuscaketest.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/resource_statuscaketest.go b/resource_statuscaketest.go index d403848..389a7d6 100644 --- a/resource_statuscaketest.go +++ b/resource_statuscaketest.go | |||
@@ -58,6 +58,10 @@ func resourceStatusCakeTest() *schema.Resource { | |||
58 | Type: schema.TypeInt, | 58 | Type: schema.TypeInt, |
59 | Computed: true, | 59 | Computed: true, |
60 | }, | 60 | }, |
61 | "contact_id": &schema.Schema{ | ||
62 | Type: schema.TypeInt, | ||
63 | Optional: true, | ||
64 | }, | ||
61 | }, | 65 | }, |
62 | } | 66 | } |
63 | } | 67 | } |
@@ -160,5 +164,8 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test { | |||
160 | if v, ok := d.GetOk("timeout"); ok { | 164 | if v, ok := d.GetOk("timeout"); ok { |
161 | test.Timeout = v.(int) | 165 | test.Timeout = v.(int) |
162 | } | 166 | } |
167 | if v, ok := d.GetOk("contact_id"); ok { | ||
168 | test.ContactID = v.(int) | ||
169 | } | ||
163 | return test | 170 | return test |
164 | } | 171 | } |