Skip to content

Commit e30d4c3

Browse files
authored
remove scf validate (#1042)
1 parent 6f70708 commit e30d4c3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tencentcloud/resource_tc_mysql_readonly_instance.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ package tencentcloud
2828
import (
2929
"context"
3030
"fmt"
31+
"log"
32+
3133
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
3234
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
3335
cdb "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cdb/v20170320"
3436
sdkError "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
3537
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
36-
"log"
3738
)
3839

3940
func resourceTencentCloudMysqlReadonlyInstance() *schema.Resource {

tencentcloud/resource_tc_scf_function.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ func resourceTencentCloudScfFunction() *schema.Resource {
138138
Optional: true,
139139
Default: 128,
140140
ValidateFunc: helper.ComposeValidateFunc(
141-
validateIntegerInRange(128, 1536),
141+
//validateIntegerInRange(128, 1536),
142142
func(v interface{}, k string) (wss []string, errs []error) {
143143
if v.(int)%128 != 0 {
144144
errs = append(errs, errors.Errorf("%s should be with 128M as the ladder", k))
145145
}
146146
return
147147
},
148148
),
149-
Description: "Memory size of the SCF function, unit is MB. The default is `128`MB. The range is 128M-1536M, and the ladder is 128M.",
149+
Description: "Memory size of the SCF function, unit is MB. The default is `128`MB. The ladder is 128M.",
150150
},
151151
"timeout": {
152152
Type: schema.TypeInt,

website/docs/r/scf_function.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The following arguments are supported:
6464
* `image_config` - (Optional) Image of the SCF function, conflict with ``.
6565
* `l5_enable` - (Optional) Enable L5 for SCF function, default is `false`.
6666
* `layers` - (Optional) The list of association layers.
67-
* `mem_size` - (Optional) Memory size of the SCF function, unit is MB. The default is `128`MB. The range is 128M-1536M, and the ladder is 128M.
67+
* `mem_size` - (Optional) Memory size of the SCF function, unit is MB. The default is `128`MB. The ladder is 128M.
6868
* `namespace` - (Optional, ForceNew) Namespace of the SCF function, default is `default`.
6969
* `role` - (Optional) Role of the SCF function.
7070
* `subnet_id` - (Optional) Subnet ID of the SCF function.

0 commit comments

Comments
 (0)