Skip to content

Commit b81deed

Browse files
author
mikatong
committed
update crp dnspod
1 parent 9eaa35c commit b81deed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tencentcloud/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ func Provider() *schema.Provider {
885885
"tencentcloud_rum_web_vitals_page": rum.DataSourceTencentCloudRumWebVitalsPage(),
886886
"tencentcloud_rum_log_export": rum.DataSourceTencentCloudRumLogExport(),
887887
"tencentcloud_rum_log_export_list": rum.DataSourceTencentCloudRumLogExportList(),
888-
"tencentcloud_dnspod_records": dnspod.DataSourceTencentCloudDnspodRecords(),
888+
"tencentcloud_dnspod_record": dnspod.DataSourceTencentCloudDnspodRecords(),
889889
"tencentcloud_dnspod_domain_list": dnspod.DataSourceTencentCloudDnspodDomainList(),
890890
"tencentcloud_dnspod_domain_analytics": dnspod.DataSourceTencentCloudDnspodDomainAnalytics(),
891891
"tencentcloud_dnspod_domain_log_list": dnspod.DataSourceTencentCloudDnspodDomainLogList(),

tencentcloud/services/dnspod/data_source_tc_dnspod_records.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func DataSourceTencentCloudDnspodRecords() *schema.Resource {
8484
Optional: true,
8585
Type: schema.TypeString,
8686
},
87-
"result": {
87+
"instance_list": {
8888
Computed: true,
8989
Description: "The record list result.",
9090
Elem: &schema.Resource{Schema: map[string]*schema.Schema{
@@ -261,7 +261,7 @@ func dataSourceTencentCloudDnspodRead(d *schema.ResourceData, meta interface{})
261261
return err
262262
}
263263

264-
err = d.Set("result", result)
264+
err = d.Set("instance_list", result)
265265
if err != nil {
266266
return err
267267
}
@@ -270,7 +270,7 @@ func dataSourceTencentCloudDnspodRead(d *schema.ResourceData, meta interface{})
270270
if ok && output.(string) != "" {
271271
err = tccommon.WriteToFile(output.(string), map[string]interface{}{
272272
"record_count_info": info,
273-
"result": result,
273+
"instance_list": result,
274274
})
275275
if err != nil {
276276
return err

0 commit comments

Comments
 (0)