Skip to content

Commit

Permalink
remove use of ToMap (#2660)
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli authored Oct 4, 2024
1 parent d35a425 commit 5335957
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,10 @@ func featureUsagesSchema() *schema.Resource {

func featureToSchema(feature admin.CloudProviderAccessFeatureUsage) map[string]any {
featureID := feature.GetFeatureId()
featureIDMap, _ := featureID.ToMap()
featureIDMap := map[string]any{
"project_id": featureID.GetGroupId(),
"bucket_name": featureID.GetBucketName(),
}
return map[string]any{
"feature_type": feature.GetFeatureType(),
"feature_id": featureIDMap,
Expand Down

0 comments on commit 5335957

Please sign in to comment.