mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 09:51:16 -04:00
Merge pull request #386 from jefferai/f-align-pki-documentation
Fix regexes to allow hyphens in PKI role names, as the documentation shows
This commit is contained in:
commit
be575cbbf2
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
func pathIssue(b *backend) *framework.Path {
|
||||
return &framework.Path{
|
||||
Pattern: `issue/(?P<role>\w+)`,
|
||||
Pattern: `issue/(?P<role>\w[\w-]+\w)`,
|
||||
Fields: map[string]*framework.FieldSchema{
|
||||
"role": &framework.FieldSchema{
|
||||
Type: framework.TypeString,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
func pathRoles(b *backend) *framework.Path {
|
||||
return &framework.Path{
|
||||
Pattern: "roles/(?P<name>\\w+)",
|
||||
Pattern: `roles/(?P<name>\w[\w-]+\w)`,
|
||||
Fields: map[string]*framework.FieldSchema{
|
||||
"name": &framework.FieldSchema{
|
||||
Type: framework.TypeString,
|
||||
|
|
|
|||
Loading…
Reference in a new issue