Skip to content

Commit

Permalink
backport of commit 6d2e589
Browse files Browse the repository at this point in the history
  • Loading branch information
benashz committed Dec 10, 2021
1 parent a3f0956 commit 7e1c191
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vault/identity_store_aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/golang/protobuf/ptypes"
"github.com/hashicorp/go-multierror"
"github.com/hashicorp/go-secure-stdlib/strutil"
"github.com/mitchellh/mapstructure"

"github.com/hashicorp/vault/helper/identity"
"github.com/hashicorp/vault/helper/namespace"
Expand Down Expand Up @@ -141,10 +140,7 @@ func (i *IdentityStore) handleAliasCreateUpdate() framework.OperationFunc {
customMetadata := make(map[string]string)
data, customMetadataExists := d.GetOk("custom_metadata")
if customMetadataExists {
err = mapstructure.Decode(data, &customMetadata)
if err != nil {
return nil, err
}
customMetadata = data.(map[string]string)
}

// Get entity id
Expand Down

0 comments on commit 7e1c191

Please sign in to comment.