Skip to content

fix(clb): [121687535] tencentcloud_clb_listener_rule update code #3080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading