Skip to content

Commit d89e8f3

Browse files
committed
add
1 parent 86c8d7e commit d89e8f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tencentcloud/services/clb/resource_tc_clb_listener_rule.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ func ResourceTencentCloudClbListenerRule() *schema.Resource {
9191
"health_check_port": {
9292
Type: schema.TypeInt,
9393
Optional: true,
94-
Computed: true,
9594
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).",
9695
},
9796
"health_check_type": {
@@ -569,7 +568,9 @@ func resourceTencentCloudClbListenerRuleRead(d *schema.ResourceData, meta interf
569568
_ = d.Set("health_check_http_domain", instance.HealthCheck.HttpCheckDomain)
570569
_ = d.Set("health_check_http_path", instance.HealthCheck.HttpCheckPath)
571570
_ = d.Set("health_check_http_code", instance.HealthCheck.HttpCode)
572-
_ = d.Set("health_check_port", instance.HealthCheck.CheckPort)
571+
if instance.HealthCheck.CheckPort != nil {
572+
_ = d.Set("health_check_port", instance.HealthCheck.CheckPort)
573+
}
573574
_ = d.Set("health_check_type", instance.HealthCheck.CheckType)
574575
_ = d.Set("health_check_time_out", instance.HealthCheck.TimeOut)
575576
}

0 commit comments

Comments
 (0)