diff options
author | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-08-06 12:48:46 +0200 |
---|---|---|
committer | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-08-09 11:14:32 +0200 |
commit | 7b64e6ecb9bb71146818926fcd3e1b3296e9b3e1 (patch) | |
tree | c10a2de6d288f1dbcfab9471ff1f724406bacac4 /statuscake | |
parent | ebf8436f01bcacb71e3c378f08b165dfd6dd90e6 (diff) | |
download | terraform-provider-statuscake-fix_read_test.tar.gz terraform-provider-statuscake-fix_read_test.tar.zst terraform-provider-statuscake-fix_read_test.zip |
fix reading of testfix_read_test
Diffstat (limited to 'statuscake')
-rw-r--r-- | statuscake/resource_statuscaketest.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/statuscake/resource_statuscaketest.go b/statuscake/resource_statuscaketest.go index 5af5b8f..f3ed3d2 100644 --- a/statuscake/resource_statuscaketest.go +++ b/statuscake/resource_statuscaketest.go | |||
@@ -337,6 +337,8 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error { | |||
337 | } else if v, ok := d.GetOk("contact_id"); ok { | 337 | } else if v, ok := d.GetOk("contact_id"); ok { |
338 | d.Set("contact_id", v) | 338 | d.Set("contact_id", v) |
339 | } | 339 | } |
340 | |||
341 | d.Set("contact_group", testResp.ContactGroup) | ||
340 | d.Set("website_name", testResp.WebsiteName) | 342 | d.Set("website_name", testResp.WebsiteName) |
341 | d.Set("website_url", testResp.WebsiteURL) | 343 | d.Set("website_url", testResp.WebsiteURL) |
342 | d.Set("check_rate", testResp.CheckRate) | 344 | d.Set("check_rate", testResp.CheckRate) |
@@ -362,11 +364,12 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error { | |||
362 | d.Set("do_not_find", testResp.DoNotFind) | 364 | d.Set("do_not_find", testResp.DoNotFind) |
363 | d.Set("status_codes", testResp.StatusCodes) | 365 | d.Set("status_codes", testResp.StatusCodes) |
364 | d.Set("use_jar", testResp.UseJar) | 366 | d.Set("use_jar", testResp.UseJar) |
367 | d.Set("user_agent", testResp.UserAgent) | ||
365 | d.Set("post_raw", testResp.PostRaw) | 368 | d.Set("post_raw", testResp.PostRaw) |
366 | d.Set("final_endpoint", testResp.FinalEndpoint) | 369 | d.Set("final_endpoint", testResp.FinalEndpoint) |
367 | d.Set("enable_ssl_alert", testResp.EnableSSLAlert) | 370 | d.Set("enable_ssl_alert", testResp.EnableSSLAlert) |
368 | d.Set("follow_redirect", testResp.FollowRedirect) | 371 | d.Set("follow_redirect", testResp.FollowRedirect) |
369 | 372 | d.Set("test_tags", testResp.TestTags) | |
370 | return nil | 373 | return nil |
371 | } | 374 | } |
372 | 375 | ||