Skip to content

Commit c9bdee2

Browse files
author
hellertang
authored
sg rules remove validate (#757)
1 parent 139bab2 commit c9bdee2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tencentcloud/resource_tc_security_group_rule.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,17 @@ func resourceTencentCloudSecurityGroupRule() *schema.Resource {
9191
ConflictsWith: []string{
9292
"source_sgid",
9393
},
94-
ValidateFunc: func(v interface{}, k string) (ws []string, errs []error) {
95-
if _, err := validateIp(v, k); len(err) == 0 {
96-
return
97-
}
98-
99-
if _, err := validateCIDRNetworkAddress(v, k); len(err) != 0 {
100-
errs = append(errs, fmt.Errorf("%s %v is not valid IP address or valid CIDR IP address",
101-
k, v))
102-
}
103-
return
104-
},
94+
//ValidateFunc: func(v interface{}, k string) (ws []string, errs []error) {
95+
// if _, err := validateIp(v, k); len(err) == 0 {
96+
// return
97+
// }
98+
//
99+
// if _, err := validateCIDRNetworkAddress(v, k); len(err) != 0 {
100+
// errs = append(errs, fmt.Errorf("%s %v is not valid IP address or valid CIDR IP address",
101+
// k, v))
102+
// }
103+
// return
104+
//},
105105
Description: "An IP address network or segment, and conflict with `source_sgid` and `address_template`.",
106106
},
107107
"ip_protocol": {

0 commit comments

Comments
 (0)