Skip to content

Commit bf019b4

Browse files
tongyimingmikatong
andauthored
fix(gaap): [127780428]fix certificate_id update was not updated successfully (#3564)
* fix certificate_id update was not updated successfully * add changelog --------- Co-authored-by: mikatong <mikatong@tencent.com>
1 parent 5347a98 commit bf019b4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changelog/3564.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_gaap_layer7_listener: fix certificate_id was not updated successfully
3+
```

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)