Skip to content

Commit e8f0677

Browse files
committed
table_id/group_name change to tablegroup_id/tablegroup_name
1 parent 89726f3 commit e8f0677

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tencentcloud/data_source_tc_tcaplus_tablegroups.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ func dataSourceTencentCloudTcaplusTableGroupsRead(d *schema.ResourceData, meta i
105105
}
106106

107107
clusterId := d.Get("cluster_id").(string)
108-
groupId := d.Get("group_id").(string)
109-
groupName := d.Get("group_name").(string)
108+
groupId := d.Get("tablegroup_id").(string)
109+
groupName := d.Get("tablegroup_name").(string)
110110

111111
groups, err := service.DescribeGroups(ctx, clusterId, groupId, groupName)
112112
if err != nil {
@@ -121,8 +121,8 @@ func dataSourceTencentCloudTcaplusTableGroupsRead(d *schema.ResourceData, meta i
121121

122122
for _, group := range groups {
123123
listItem := make(map[string]interface{})
124-
listItem["group_name"] = group.TableGroupName
125-
listItem["group_id"] = fmt.Sprintf("%s:%s", clusterId, *group.TableGroupId)
124+
listItem["tablegroup_name"] = group.TableGroupName
125+
listItem["tablegroup_id"] = fmt.Sprintf("%s:%s", clusterId, *group.TableGroupId)
126126
listItem["table_count"] = group.TableCount
127127
listItem["total_size"] = group.TotalSize
128128
listItem["create_time"] = group.CreatedTime

0 commit comments

Comments
 (0)