Update acl/validation.go

Co-authored-by: Chris Thain <32781396+cthain@users.noreply.github.com>
pull/18345/head
Jeremy Jacobson 2023-07-31 14:21:08 -07:00 committed by GitHub
parent 2a6a531bd5
commit d63fa5481d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func ValidatePolicyName(name string) error {
}
if strings.HasPrefix(name, "/") || strings.HasPrefix(name, ReservedBuiltinPrefix) {
return fmt.Errorf("Invalid Policy: invalid Name. Names cannot be prefixed with '/' or 'builtin/'")
return fmt.Errorf("Invalid Policy: invalid Name. Names cannot be prefixed with '/' or '%s'", ReservedBuiltinPrefix)
}
if !validPolicyName.MatchString(name) {