Skip to content

Commit

Permalink
fix(tcmq): [123456789]fix datasource tcmq topic (#2546)
Browse files Browse the repository at this point in the history
* fix datasource tcmq topic

* add changelog

---------

Co-authored-by: mikatong <[email protected]>
  • Loading branch information
tongyiming and mikatong authored Mar 1, 2024
1 parent 870017f commit c5bb598
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/2546.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
datasource/tencentcloud_tcmq_topic: fix `topic_list.topic_id` value
```
4 changes: 2 additions & 2 deletions tencentcloud/services/tcmq/data_source_tc_tcmq_topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ func dataSourceTencentCloudTcmqTopicRead(d *schema.ResourceData, meta interface{
for _, topic := range topicList {
topicNames = append(topicNames, *topic.TopicName)
topicItem := make(map[string]interface{})
if topic.TenantId != nil {
topicItem["topic_id"] = *topic.TenantId
if topic.TopicId != nil {
topicItem["topic_id"] = *topic.TopicId
}
if topic.TopicName != nil {
topicItem["topic_name"] = *topic.TopicName
Expand Down

0 comments on commit c5bb598

Please sign in to comment.