Skip to content

Commit f48acb1

Browse files
authored
fix panic (#23599)
1 parent f936557 commit f48acb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/services/storage/storage_account_customer_managed_key_resource.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"time"
1010

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

284285
d.Set("storage_account_id", id.ID())

0 commit comments

Comments
 (0)