Skip to content

Commit 9cf9b56

Browse files
committed
fix bugs
1 parent dbe45cc commit 9cf9b56

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
BUG FIXES:
44
* Resource: `tencentcloud_clb_instance` fix force new when updating tags.
55
* Resource: `tencentcloud_redis_backup_config` fix doc issues.
6+
* Resource: `tencentcloud_instance` fix `keep_image_login` force new issue when updating terraform version.
67

78
## 1.45.2 (October 19, 2020)
89

tencentcloud/resource_tc_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func resourceTencentCloudInstance() *schema.Resource {
343343
Optional: true,
344344
Default: false,
345345
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
346-
if new == "false" && old == "" || old == "false" && new == "false" {
346+
if new == "false" && old == "" || old == "false" && new == "" {
347347
return true
348348
} else {
349349
return old == new

tencentcloud/resource_tc_redis_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func resourceTencentCloudRedisInstance() *schema.Resource {
7979
Optional: true,
8080
ForceNew: true,
8181
ValidateFunc: validateIntegerMin(2),
82-
Description: "Instance type. Refer to `data.tencentcloud_redis_zone_config.list.type_id` or ([document](https://intl.cloud.tencent.com/document/product/239/32069)) get available values.",
82+
Description: "Instance type. Available values reference data source `tencentcloud_redis_zone_config` or [document](https://intl.cloud.tencent.com/document/product/239/32069).",
8383
},
8484
"redis_shard_num": {
8585
Type: schema.TypeInt,

website/docs/r/redis_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The following arguments are supported:
4747
* `security_groups` - (Optional, ForceNew) ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
4848
* `subnet_id` - (Optional, ForceNew) Specifies which subnet the instance should belong to.
4949
* `tags` - (Optional) Instance tags.
50-
* `type_id` - (Optional, ForceNew) Instance type. Refer to `data.tencentcloud_redis_zone_config.list.type_id` or ([document](https://intl.cloud.tencent.com/document/product/239/32069)) get available values.
50+
* `type_id` - (Optional, ForceNew) Instance type. Available values reference data source `tencentcloud_redis_zone_config` or [document](https://intl.cloud.tencent.com/document/product/239/32069).
5151
* `type` - (Optional, ForceNew, **Deprecated**) It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values: `cluster_ckv`,`cluster_redis5.0`,`cluster_redis`,`master_slave_ckv`,`master_slave_redis5.0`,`master_slave_redis`,`standalone_redis`, specific region support specific types, need to refer data `tencentcloud_redis_zone_config`.
5252
* `vpc_id` - (Optional, ForceNew) ID of the vpc with which the instance is to be associated.
5353

0 commit comments

Comments
 (0)