Skip to content

Commit

Permalink
Merge 6d2e589 into backport/VAULT-4074/identity-alias-clear-custom-me…
Browse files Browse the repository at this point in the history
…tadata/primarily-bright-lionfish
  • Loading branch information
hc-github-team-secure-vault-core committed Jan 19, 2022
2 parents dc59d41 + 6d2e589 commit 5debdfa
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 5debdfa

Please sign in to comment.