diff --git a/plugin/path_static_account_secrets.go b/plugin/path_static_account_secrets.go index cfd75985..7f921a4c 100644 --- a/plugin/path_static_account_secrets.go +++ b/plugin/path_static_account_secrets.go @@ -12,9 +12,9 @@ func pathStaticAccountSecretServiceAccountKey(b *backend) *framework.Path { return &framework.Path{ Pattern: fmt.Sprintf("%s/%s/key", staticAccountPathPrefix, framework.GenericNameRegex("static_account")), Fields: map[string]*framework.FieldSchema{ - "static_account": { + "name": { Type: framework.TypeString, - Description: "Required. Name of the static_account.", + Description: "Required. Name of the static account.", }, "key_algorithm": { Type: framework.TypeString, @@ -45,9 +45,9 @@ func pathStaticAccountSecretAccessToken(b *backend) *framework.Path { return &framework.Path{ Pattern: fmt.Sprintf("%s/%s/token", staticAccountPathPrefix, framework.GenericNameRegex("static_account")), Fields: map[string]*framework.FieldSchema{ - "static_account": { + "name": { Type: framework.TypeString, - Description: "Required. Name of the static_account.", + Description: "Required. Name of the static account.", }, }, ExistenceCheck: b.pathStaticAccountExistenceCheck, @@ -61,7 +61,7 @@ func pathStaticAccountSecretAccessToken(b *backend) *framework.Path { } func (b *backend) pathStaticAccountSecretKey(ctx context.Context, req *logical.Request, d *framework.FieldData) (*logical.Response, error) { - acctName := d.Get("static_account").(string) + acctName := d.Get("name").(string) keyType := d.Get("key_type").(string) keyAlg := d.Get("key_algorithm").(string) ttl := d.Get("ttl").(int) @@ -91,7 +91,7 @@ func (b *backend) pathStaticAccountSecretKey(ctx context.Context, req *logical.R } func (b *backend) pathStaticAccountAccessToken(ctx context.Context, req *logical.Request, d *framework.FieldData) (*logical.Response, error) { - acctName := d.Get("static_account").(string) + acctName := d.Get("name").(string) acct, err := b.getStaticAccount(acctName, ctx, req.Storage) if err != nil {