Skip to content

Commit dab8e89

Browse files
committed
code format
1 parent 6884036 commit dab8e89

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

tencentcloud/data_source_tc_redis_instances.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,24 +153,24 @@ func dataSourceTencentRedisInstances() *schema.Resource {
153153
Description: "The charge type of instance. Valid values are `POSTPAID` and `PREPAID`.",
154154
},
155155
"node_info": {
156-
Type: schema.TypeList,
157-
Computed: true,
156+
Type: schema.TypeList,
157+
Computed: true,
158158
Description: "List of instance node information. Currently, information about the node type (master or replica) and node availability zone can be passed in.",
159-
Elem: &schema.Resource{
159+
Elem: &schema.Resource{
160160
Schema: map[string]*schema.Schema{
161161
"master": {
162-
Type: schema.TypeBool,
163-
Computed: true,
162+
Type: schema.TypeBool,
163+
Computed: true,
164164
Description: "Indicates whether the node is master.",
165165
},
166166
"id": {
167-
Type: schema.TypeInt,
168-
Computed: true,
167+
Type: schema.TypeInt,
168+
Computed: true,
169169
Description: "ID of the master or replica node.",
170170
},
171171
"zone_id": {
172-
Type: schema.TypeInt,
173-
Computed: true,
172+
Type: schema.TypeInt,
173+
Computed: true,
174174
Description: "ID of the availability zone of the master or replica node.",
175175
},
176176
},

tencentcloud/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ func Provider() terraform.ResourceProvider {
930930
"tencentcloud_monitor_policy_group": resourceTencentMonitorPolicyGroup(),
931931
"tencentcloud_monitor_binding_object": resourceTencentMonitorBindingObject(),
932932
"tencentcloud_monitor_binding_receiver": resourceTencentMonitorBindingAlarmReceiver(),
933-
"tencentcloud_monitor_alarm_policy": resourceTencentMonitorAlarmPolicy(),
933+
"tencentcloud_monitor_alarm_policy": resourceTencentMonitorAlarmPolicy(),
934934
"tencentcloud_mongodb_standby_instance": resourceTencentCloudMongodbStandbyInstance(),
935935
"tencentcloud_elasticsearch_instance": resourceTencentCloudElasticsearchInstance(),
936936
"tencentcloud_postgresql_instance": resourceTencentCloudPostgresqlInstance(),

tencentcloud/resource_tc_monitor_policy_group.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ import (
6767
func resourceTencentMonitorPolicyGroup() *schema.Resource {
6868
return &schema.Resource{
6969
DeprecationMessage: "This resource has been deprecated in Terraform TencentCloud provider version 1.59.18. Please use 'tencentcloud_alarm_policy' instead.",
70-
Create: resourceTencentMonitorPolicyGroupCreate,
71-
Read: resourceTencentMonitorPolicyGroupRead,
72-
Update: resourceTencentMonitorPolicyGroupUpdate,
73-
Delete: resourceTencentMonitorPolicyGroupDelete,
70+
Create: resourceTencentMonitorPolicyGroupCreate,
71+
Read: resourceTencentMonitorPolicyGroupRead,
72+
Update: resourceTencentMonitorPolicyGroupUpdate,
73+
Delete: resourceTencentMonitorPolicyGroupDelete,
7474
Importer: &schema.ResourceImporter{
7575
State: schema.ImportStatePassthrough,
7676
},

tencentcloud/resource_tc_redis_instance.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,14 @@ func resourceTencentCloudRedisInstanceCreate(d *schema.ResourceData, meta interf
373373
// insert master node
374374
nodeInfo = append(nodeInfo, &redis.RedisNodeInfo{
375375
NodeType: helper.Int64(0),
376-
ZoneId: helper.Int64Uint64(masterZoneId),
376+
ZoneId: helper.Int64Uint64(masterZoneId),
377377
})
378378

379379
for _, v := range zoneIds {
380380
id := v.(int)
381381
nodeInfo = append(nodeInfo, &redis.RedisNodeInfo{
382382
NodeType: helper.Int64(1),
383-
ZoneId: helper.IntUint64(id),
383+
ZoneId: helper.IntUint64(id),
384384
})
385385
}
386386
}
@@ -595,7 +595,7 @@ func resourceTencentCloudRedisInstanceUpdate(d *schema.ResourceData, meta interf
595595
d.SetPartial("name")
596596
}
597597

598-
if d.HasChange("mem_size"){
598+
if d.HasChange("mem_size") {
599599

600600
oldInter, newInter := d.GetChange("mem_size")
601601
newMemSize := newInter.(int)

0 commit comments

Comments
 (0)