Skip to content

Commit f8dc74e

Browse files
committed
fix(cls): [138805605] moidfy type switch
1 parent 18a785a commit f8dc74e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tencentcloud/services/cls/resource_tc_cls_config_extra.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ func resourceTencentCloudClsConfigExtraUpdate(d *schema.ResourceData, meta inter
979979
request.HostFile = hostFiles[0]
980980
}
981981
}
982-
if d.HasChange("container_file") {
982+
if d.HasChange("container_file") || d.HasChange("type") {
983983
if v, ok := d.GetOk("container_file"); ok {
984984
containerFiles := make([]*cls.ContainerFileInfo, 0, 10)
985985
if len(v.([]interface{})) != 1 {
@@ -1040,7 +1040,7 @@ func resourceTencentCloudClsConfigExtraUpdate(d *schema.ResourceData, meta inter
10401040
request.ContainerFile = containerFiles[0]
10411041
}
10421042
}
1043-
if d.HasChange("container_stdout") {
1043+
if d.HasChange("container_stdout") || d.HasChange("type") {
10441044
if v, ok := d.GetOk("container_stdout"); ok {
10451045
containerStdouts := make([]*cls.ContainerStdoutInfo, 0, 10)
10461046
if len(v.([]interface{})) != 1 {

0 commit comments

Comments
 (0)