Skip to content

Commit e3f1f39

Browse files
committed
fix bugs
1 parent 08af003 commit e3f1f39

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tencentcloud/resource_tc_elasticsearch_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ func resourceTencentCloudElasticsearchInstance() *schema.Resource {
8484
},
8585
"subnet_id": {
8686
Type: schema.TypeString,
87-
Sensitive: true,
8887
Required: true,
8988
ForceNew: true,
9089
Description: "The id of a VPC subnetwork.",
@@ -129,6 +128,7 @@ func resourceTencentCloudElasticsearchInstance() *schema.Resource {
129128
Type: schema.TypeList,
130129
Optional: true,
131130
ForceNew: true,
131+
Computed: true,
132132
Description: "Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is `1`).",
133133
Elem: &schema.Resource{
134134
Schema: map[string]*schema.Schema{
@@ -431,7 +431,7 @@ func resourceTencentCloudElasticsearchInstanceRead(d *schema.ResourceData, meta
431431
info["type"] = item.Type
432432
info["disk_type"] = item.DiskType
433433
info["disk_size"] = item.DiskSize
434-
info["encypt"] = *item.DiskEncrypt > 0
434+
info["encrypt"] = *item.DiskEncrypt > 0
435435
nodeInfoList = append(nodeInfoList, info)
436436
}
437437
_ = d.Set("node_info_list", nodeInfoList)

tencentcloud/resource_tc_elasticsearch_instance_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/hashicorp/terraform-plugin-sdk/terraform"
1010
)
1111

12-
func TestAccTencentCloudElasticsearchInstance(t *testing.T) {
12+
func TestAccTencentCloudElasticsearchInstance_basic(t *testing.T) {
1313
t.Parallel()
1414

1515
resource.Test(t, resource.TestCase{
@@ -45,12 +45,12 @@ func TestAccTencentCloudElasticsearchInstance(t *testing.T) {
4545
resource.TestCheckResourceAttr("tencentcloud_elasticsearch_instance.foo", "tags.test", "test"),
4646
),
4747
},
48-
/*{
48+
{
4949
ResourceName: "tencentcloud_elasticsearch_instance.foo",
5050
ImportState: true,
5151
ImportStateVerify: true,
5252
ImportStateVerifyIgnore: []string{"password"},
53-
},*/
53+
},
5454
},
5555
})
5656
}

0 commit comments

Comments
 (0)