Skip to content

Commit 3dc48c0

Browse files
Remove validation from domain field (#581)
Co-authored-by: aviv.yaari <aviv.yaari@imperva.com>
1 parent f783234 commit 3dc48c0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

incapsula/resource_site.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ func resourceSite() *schema.Resource {
3535
Type: schema.TypeString,
3636
Required: true,
3737
ForceNew: true,
38-
ValidateFunc: func(val interface{}, key string) (warns []string, errs []error) {
39-
d := val.(string)
40-
parts := strings.Split(d, ".")
41-
if len(parts) <= 2 {
42-
errs = append(errs, fmt.Errorf("%q must be a fully qualified domain name (www.example.com, not example.com), got: %s", key, d))
43-
}
44-
return
45-
},
4638
},
4739

4840
// Optional Arguments

0 commit comments

Comments
 (0)