Skip to content

Commit 2798b27

Browse files
gitmknanonymous
andauthored
fix: modify cdn compression (#1814)
* fix: modify cdn compression * feat: add changelog * fix: go fmt --------- Co-authored-by: anonymous <anonymous@mail.org>
1 parent 9c892a7 commit 2798b27

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.changelog/1814.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_cdn_domain: fix compression problem
3+
```

tencentcloud/resource_tc_cdn_domain.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ func resourceTencentCloudCdnDomainRead(d *schema.ResourceData, meta interface{})
28342834
if ok := checkCdnInfoWritable(d, "ip_filter", dc.IpFilter); ok {
28352835
dMap := map[string]interface{}{
28362836
"switch": dc.IpFilter.Switch,
2837-
"filer_type": dc.IpFilter.FilterType,
2837+
"filter_type": dc.IpFilter.FilterType,
28382838
"filters": dc.IpFilter.Filters,
28392839
"return_code": dc.IpFilter.ReturnCode,
28402840
}
@@ -3039,10 +3039,10 @@ func resourceTencentCloudCdnDomainRead(d *schema.ResourceData, meta interface{})
30393039
for i := range rules {
30403040
item := rules[i]
30413041
rule := map[string]interface{}{
3042-
"follow_origin": item.FollowOrigin,
3043-
"max_agent_contents": item.MaxAgeContents,
3044-
"max_agent_type": item.MaxAgeType,
3045-
"max_agent_time": item.MaxAgeTime,
3042+
"follow_origin": item.FollowOrigin,
3043+
"max_age_contents": item.MaxAgeContents,
3044+
"max_age_type": item.MaxAgeType,
3045+
"max_age_time": item.MaxAgeTime,
30463046
}
30473047
list = append(list, rule)
30483048
}

tencentcloud/resource_tc_tdmq_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func resourceTencentCloudTdmqCreate(d *schema.ResourceData, meta interface{}) er
104104
})
105105

106106
if err != nil {
107-
log.Printf("[CRITAL]%s create cls logset failed, reason:%+v", logId, err)
107+
log.Printf("[CRITAL]%s create tdmq instance failed, reason:%+v", logId, err)
108108
return err
109109
}
110110

0 commit comments

Comments
 (0)