Skip to content

Commit

Permalink
Test fix - name too short error returned for empty name
Browse files Browse the repository at this point in the history
  • Loading branch information
robselway committed May 17, 2020
1 parent e9ecab4 commit f183a6a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -218,7 +218,7 @@ func ValidateSqlVirtualNetworkRuleName(v interface{}, k string) (warnings []stri
}

// Cannot be shorter than 2 characters
if len(value) < 2 {
if len(value) == 1 {
errors = append(errors, fmt.Errorf(
"%q cannot be shorter than 2 characters: %q", k, value))
}
Expand Down

0 comments on commit f183a6a

Please sign in to comment.