Skip to content

Commit

Permalink
azurerm_servicebus_namespace - fix panic reading encryption with ve…
Browse files Browse the repository at this point in the history
…rsionless ids (#27060)
  • Loading branch information
jackofallops authored Aug 15, 2024
1 parent 65334cd commit 2f00361
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ func flattenServiceBusNamespaceEncryption(encryption *namespaces.Encryption) ([]
var identityId string
if keyVaultProperties := encryption.KeyVaultProperties; keyVaultProperties != nil && len(*keyVaultProperties) != 0 {
props := (*keyVaultProperties)[0]
keyVaultKeyId, err := keyVaultParse.NewNestedItemID(*props.KeyVaultUri, keyVaultParse.NestedItemTypeKey, *props.KeyName, *props.KeyVersion)
keyVaultKeyId, err := keyVaultParse.NewNestedItemID(pointer.From(props.KeyVaultUri), keyVaultParse.NestedItemTypeKey, pointer.From(props.KeyName), pointer.From(props.KeyVersion))
if err != nil {
return nil, fmt.Errorf("parsing `key_vault_key_id`: %+v", err)
}
Expand Down

0 comments on commit 2f00361

Please sign in to comment.