Skip to content

Commit

Permalink
fix(clb): [121687535] tencentcloud_clb_listener_rule update code (#…
Browse files Browse the repository at this point in the history
…3080)

* add

* add
  • Loading branch information
SevenEarth authored Jan 16, 2025
1 parent a81c6bc commit 8568d8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/3080.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_clb_listener_rule: update code
```
5 changes: 3 additions & 2 deletions tencentcloud/services/clb/resource_tc_clb_listener_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func ResourceTencentCloudClbListenerRule() *schema.Resource {
"health_check_port": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Description: "Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).",
},
"health_check_type": {
Expand Down Expand Up @@ -569,7 +568,9 @@ func resourceTencentCloudClbListenerRuleRead(d *schema.ResourceData, meta interf
_ = d.Set("health_check_http_domain", instance.HealthCheck.HttpCheckDomain)
_ = d.Set("health_check_http_path", instance.HealthCheck.HttpCheckPath)
_ = d.Set("health_check_http_code", instance.HealthCheck.HttpCode)
_ = d.Set("health_check_port", instance.HealthCheck.CheckPort)
if instance.HealthCheck.CheckPort != nil {
_ = d.Set("health_check_port", instance.HealthCheck.CheckPort)
}
_ = d.Set("health_check_type", instance.HealthCheck.CheckType)
_ = d.Set("health_check_time_out", instance.HealthCheck.TimeOut)
}
Expand Down

0 comments on commit 8568d8a

Please sign in to comment.