Skip to content

Commit

Permalink
key id trim postfix slash
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 committed Nov 6, 2024
1 parent d9774b1 commit 23503be
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,6 @@ func FlattenKeyVaultOrManagedHSMID(id string, hsmEnv environments.Api) (*KeyVaul

func FlattenKeyVaultOrManagedHSMIDByComponents(baseUri, name, version string, hsmEnv environments.Api) (*KeyVaultOrManagedHSMKey, error) {
id := fmt.Sprintf("%s/keys/%s/%s", strings.TrimRight(baseUri, "/"), name, version)
id = strings.TrimSuffix(id, "/")
return FlattenKeyVaultOrManagedHSMID(id, hsmEnv)
}

0 comments on commit 23503be

Please sign in to comment.