Skip to content

Commit

Permalink
fix name validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
teowa committed Nov 7, 2024
1 parent a36ee66 commit 297f961
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (StackHCINetworkInterfaceResource) Arguments() map[string]*pluginsdk.Schema
ForceNew: true,
ValidateFunc: validation.StringMatch(
regexp.MustCompile(`^[a-zA-Z0-9][\-\.\_a-zA-Z0-9]{0,78}[a-zA-Z0-9]$`),
"name must be between 2 and 80 characters and can only contain alphanumberic characters, hyphens(-), periods(.) and underlines(_). It must begin and end with an alphanumberic character.",
"name must begin and end with an alphanumeric character, be between 2 and 80 characters in length and can only contain alphanumeric characters, hyphens, periods or underscores.",
),
},

Expand Down

0 comments on commit 297f961

Please sign in to comment.