Skip to content

Commit a5f6f16

Browse files
author
mikatong
committed
fix certificate_id update was not updated successfully
1 parent 2d4789c commit a5f6f16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tencentcloud/services/gaap/resource_tc_gaap_layer7_listener.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,10 @@ func resourceTencentCloudGaapLayer7ListenerUpdate(d *schema.ResourceData, m inte
440440
)
441441

442442
name = helper.String(d.Get("name").(string))
443-
certificateId = helper.String(d.Get("certificate_id").(string))
443+
if d.HasChange("certificate_id") {
444+
certificateId = helper.String(d.Get("certificate_id").(string))
445+
isModifyHTTPSListener = true
446+
}
444447
forwardProtocol = helper.String(d.Get("forward_protocol").(string))
445448
if d.HasChange("client_certificate_id") {
446449
if raw, ok := d.GetOk("client_certificate_id"); ok {

0 commit comments

Comments
 (0)