Skip to content

Commit 5335957

Browse files
authored
remove use of ToMap (#2660)
1 parent d35a425 commit 5335957

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/service/cloudprovideraccess/resource_cloud_provider_access_authorization.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,10 @@ func featureUsagesSchema() *schema.Resource {
339339

340340
func featureToSchema(feature admin.CloudProviderAccessFeatureUsage) map[string]any {
341341
featureID := feature.GetFeatureId()
342-
featureIDMap, _ := featureID.ToMap()
342+
featureIDMap := map[string]any{
343+
"project_id": featureID.GetGroupId(),
344+
"bucket_name": featureID.GetBucketName(),
345+
}
343346
return map[string]any{
344347
"feature_type": feature.GetFeatureType(),
345348
"feature_id": featureIDMap,

0 commit comments

Comments
 (0)