Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit e67fcbf

Browse files
committed
gcore_securitygroup protocol validation disabled
1 parent 19c8767 commit e67fcbf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

gcore/resource_gcore_securitygroup.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,6 @@ func resourceSecurityGroup() *schema.Resource {
127127
Type: schema.TypeString,
128128
Required: true,
129129
Description: fmt.Sprintf("Available value is %s", strings.Join(types.Protocol("").StringList(), ",")),
130-
ValidateDiagFunc: func(v interface{}, path cty.Path) diag.Diagnostics {
131-
val := types.Protocol(v.(string))
132-
if err := val.IsValid(); err == nil {
133-
return nil
134-
}
135-
return diag.Errorf("wrong protocol '%s', available value is %s", val, strings.Join(types.ProtocolICMP.StringList(), ", "))
136-
},
137130
},
138131
"port_range_min": &schema.Schema{
139132
Type: schema.TypeInt,

0 commit comments

Comments
 (0)