Skip to content

Commit

Permalink
fix path regex and role storage
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnayak committed Apr 23, 2018
1 parent f8055c8 commit 4ee66b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/credential/approle/path_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type roleStorageEntry struct {

// SecretIDPrefix is the storage prefix under which all the secret IDs will
// be persisted.
SecretIDPrefix string `json:"-"`
SecretIDPrefix string `json:"secret_id_prefix" mapstructure:"secret_id_prefix" structs:"secret_id_prefix"`
}

// roleIDStorageEntry represents the reverse mapping from RoleID to Role
Expand Down Expand Up @@ -186,7 +186,7 @@ be reset later.`,
HelpDescription: strings.TrimSpace(roleHelp["role"][1]),
},
&framework.Path{
Pattern: "role/" + framework.GenericNameRegex("role_name"+"/local_secret_ids"),
Pattern: "role/" + framework.GenericNameRegex("role_name") + "/local_secret_ids$",
Fields: map[string]*framework.FieldSchema{
"role_name": &framework.FieldSchema{
Type: framework.TypeString,
Expand Down

0 comments on commit 4ee66b5

Please sign in to comment.