Skip to content

Commit

Permalink
fix panic (#23599)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 authored Oct 19, 2023
1 parent f936557 commit f48acb1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"time"

"github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-09-01/storage" // nolint: staticcheck
"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
"github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/managedhsms"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
Expand Down Expand Up @@ -278,7 +279,7 @@ func resourceStorageAccountCustomerManagedKeyRead(d *pluginsdk.ResourceData, met
if err != nil {
return fmt.Errorf("retrieving Key Vault ID from the Base URI %q: %+v", keyVaultURI, err)
}
keyVaultID = *tmpKeyVaultID
keyVaultID = pointer.From(tmpKeyVaultID)
}

d.Set("storage_account_id", id.ID())
Expand Down

0 comments on commit f48acb1

Please sign in to comment.