Skip to content

Commit 92a0c17

Browse files
authoredApr 3, 2025··
fix(cos): [122768427] tencentcloud_cos_buckets Fix the issue of query errors (#3268)
* add * add
1 parent 97e09de commit 92a0c17

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
 

Diff for: ‎.changelog/3268.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_cos_buckets: Fix the issue of query errors
3+
```

Diff for: ‎tencentcloud/services/cos/data_source_tc_cos_buckets.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,11 @@ func DataSourceTencentCloudCosBuckets() *schema.Resource {
261261
// Description: "",
262262
//},
263263
"follow_http_headers": {
264-
Type: schema.TypeList,
265-
Optional: true,
264+
Type: schema.TypeSet,
265+
Optional: true,
266+
Set: func(i interface{}) int {
267+
return helper.HashString(i.(string))
268+
},
266269
Description: "Specifies the pass through headers when accessing the origin server.",
267270
Elem: &schema.Schema{Type: schema.TypeString},
268271
},

0 commit comments

Comments
 (0)
Please sign in to comment.