Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenEarth committed Mar 11, 2024
1 parent 0adda67 commit 33f80d4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tencentcloud/services/cvm/resource_tc_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,14 @@ import (
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit"
)

var importFlag = false

func ResourceTencentCloudInstance() *schema.Resource {
return &schema.Resource{
Create: resourceTencentCloudInstanceCreate,
Read: resourceTencentCloudInstanceRead,
Update: resourceTencentCloudInstanceUpdate,
Delete: resourceTencentCloudInstanceDelete,
Importer: &schema.ResourceImporter{
State: func(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
importFlag = true
defaultValues := map[string]interface{}{}

for k, v := range defaultValues {
_ = d.Set(k, v)
}

return []*schema.ResourceData{d}, nil
},
State: schema.ImportStatePassthrough,
},
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(15 * time.Minute),
Expand Down

0 comments on commit 33f80d4

Please sign in to comment.