aboutsummaryrefslogtreecommitdiffhomepage
path: root/statuscake/resource_statuscaketest.go
diff options
context:
space:
mode:
authorAlexandre Garand <alexandre.garand@fretlink.com>2019-08-06 15:26:50 +0200
committerAlexandre Garand <alexandre.garand@fretlink.com>2019-08-06 15:26:50 +0200
commit76fee128c9a1803da521b63e4fbacc6f15926010 (patch)
tree428c84ad2cf56a9d0d0f8fe38b35ba9761c84392 /statuscake/resource_statuscaketest.go
parent1dfb50cf3dd93e4d2b2a095ab454106edd84b859 (diff)
parentcdca1bda321e0675ed639df2306a0e3252a54cd5 (diff)
downloadterraform-provider-statuscake-76fee128c9a1803da521b63e4fbacc6f15926010.tar.gz
terraform-provider-statuscake-76fee128c9a1803da521b63e4fbacc6f15926010.tar.zst
terraform-provider-statuscake-76fee128c9a1803da521b63e4fbacc6f15926010.zip
pull
Diffstat (limited to 'statuscake/resource_statuscaketest.go')
-rw-r--r--statuscake/resource_statuscaketest.go7
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)