diff options
Diffstat (limited to 'statuscake')
-rw-r--r-- | statuscake/resource_statuscaketest.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/statuscake/resource_statuscaketest.go b/statuscake/resource_statuscaketest.go index 88c7363..26533fa 100644 --- a/statuscake/resource_statuscaketest.go +++ b/statuscake/resource_statuscaketest.go | |||
@@ -332,7 +332,12 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error { | |||
332 | return fmt.Errorf("Error Getting StatusCake Test Details for %s: Error: %s", d.Id(), err) | 332 | return fmt.Errorf("Error Getting StatusCake Test Details for %s: Error: %s", d.Id(), err) |
333 | } | 333 | } |
334 | 334 | ||
335 | d.Set("contact_id", testResp.ContactID) | 335 | if v, ok := d.GetOk("contact_group"); ok { |
336 | d.Set("contact_group", v) | ||
337 | } else if v, ok := d.GetOk("contact_id"); ok { | ||
338 | d.Set("contact_id", v) | ||
339 | } | ||
340 | |||
336 | d.Set("contact_group", testResp.ContactGroup) | 341 | d.Set("contact_group", testResp.ContactGroup) |
337 | d.Set("website_name", testResp.WebsiteName) | 342 | d.Set("website_name", testResp.WebsiteName) |
338 | d.Set("website_url", testResp.WebsiteURL) | 343 | d.Set("website_url", testResp.WebsiteURL) |