mirror of https://github.com/hashicorp/consul
Update acl/validation.go
Co-authored-by: Chris Thain <32781396+cthain@users.noreply.github.com>pull/18345/head
parent
2a6a531bd5
commit
d63fa5481d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue