Skip to content

Commit

Permalink
azurerm_kusto_cluster: changing regex on ClusterName to match the azu…
Browse files Browse the repository at this point in the history
…re naming convention (hashicorp#23790)
  • Loading branch information
Dirrbick authored Nov 6, 2023
1 parent 5e95723 commit cbe8c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/kusto/validate/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func EntityName(v interface{}, k string) (warnings []string, errors []error) {
func ClusterName(v interface{}, k string) (warnings []string, errors []error) {
name := v.(string)

if !regexp.MustCompile(`^[a-z][a-z0-9]+$`).MatchString(name) {
if !regexp.MustCompile(`^[a-z][a-z0-9\-]+$`).MatchString(name) {
errors = append(errors, fmt.Errorf("%q must begin with a letter and may only contain alphanumeric characters: %q", k, name))
}

Expand Down

0 comments on commit cbe8c39

Please sign in to comment.