Skip to content

Commit

Permalink
validators: Clean up lakeformation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Apr 29, 2021
1 parent 7277308 commit 1e0e98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ func validatePrincipal(v interface{}, k string) (ws []string, errors []error) {

pattern := `:(role|user|group|ou|organization)/`
if !regexp.MustCompile(pattern).MatchString(value) {
errors = append(errors, fmt.Errorf("%q doesn't look like a user or role or group or ou or organization: %q", k, value))
errors = append(errors, fmt.Errorf("%q does not look like a user, role, group, OU, or organization: %q", k, value))
}

if len(errors) > 0 {
Expand Down

0 comments on commit 1e0e98c

Please sign in to comment.