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:
Armon Dadgar 2015-07-01 18:42:11 -07:00
commit be575cbbf2
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,