From 4ee66b5958f2fd8040966013de56da1361b77127 Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Mon, 23 Apr 2018 11:59:37 -0400 Subject: [PATCH] fix path regex and role storage --- builtin/credential/approle/path_role.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/credential/approle/path_role.go b/builtin/credential/approle/path_role.go index d2b3e94c34f5..54935cb0f186 100644 --- a/builtin/credential/approle/path_role.go +++ b/builtin/credential/approle/path_role.go @@ -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 @@ -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,