Skip to content

Commit c5bb598

Browse files
tongyimingmikatong
and
mikatong
authored
fix(tcmq): [123456789]fix datasource tcmq topic (#2546)
* fix datasource tcmq topic * add changelog --------- Co-authored-by: mikatong <[email protected]>
1 parent 870017f commit c5bb598

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.changelog/2546.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
datasource/tencentcloud_tcmq_topic: fix `topic_list.topic_id` value
3+
```

tencentcloud/services/tcmq/data_source_tc_tcmq_topic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ func dataSourceTencentCloudTcmqTopicRead(d *schema.ResourceData, meta interface{
260260
for _, topic := range topicList {
261261
topicNames = append(topicNames, *topic.TopicName)
262262
topicItem := make(map[string]interface{})
263-
if topic.TenantId != nil {
264-
topicItem["topic_id"] = *topic.TenantId
263+
if topic.TopicId != nil {
264+
topicItem["topic_id"] = *topic.TopicId
265265
}
266266
if topic.TopicName != nil {
267267
topicItem["topic_name"] = *topic.TopicName

0 commit comments

Comments
 (0)