Merge pull request #561 from hashicorp/fix-wild-cards

Allow hyphens in endpoint patterns of most backends
This commit is contained in:
Jeff Mitchell
2015-08-21 11:40:42 -07:00
25 changed files with 52 additions and 46 deletions

View File

@@ -12,7 +12,7 @@ import (
func pathRoleCreate(b *backend) *framework.Path {
return &framework.Path{
Pattern: `creds/(?P<name>\w+)`,
Pattern: "creds/" + framework.GenericNameRegex("name"),
Fields: map[string]*framework.FieldSchema{
"name": &framework.FieldSchema{
Type: framework.TypeString,