Skip to content

Commit

Permalink
[BugFix] : Name Validation Error Fix (#3675)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunithaGudisagarIBM authored May 5, 2022
1 parent 2d4ef6c commit 43a1730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibm/validate/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ func ValidateISName(v interface{}, k string) (ws []string, errors []error) {
endwithalphanumeric, _ := regexp.MatchString(`.*[a-z0-9]$`, name)
length := len(name)
if acceptedcharacters == true {
if length <= 40 {
if length <= 63 {
if endwithalphanumeric == true {
if strings.Contains(name, "--") != true {
return
Expand All @@ -1018,7 +1018,7 @@ func ValidateISName(v interface{}, k string) (ws []string, errors []error) {
}
} else {
errors = append(errors, fmt.Errorf(
"%q (%q) should not exceed 40 characters", k, v))
"%q (%q) should not exceed 63 characters", k, v))
}

} else {
Expand Down

0 comments on commit 43a1730

Please sign in to comment.