Skip to content

Commit d8d8790

Browse files
committed
fix: treat quota definitions as set
1 parent 0dd2654 commit d8d8790

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/provider/platform_resource.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default"
1717
"github.com/hashicorp/terraform-plugin-framework/resource/schema/listdefault"
1818
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
19+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/setdefault"
1920
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
2021
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
2122
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -223,15 +224,15 @@ func (r *platformResource) Schema(_ context.Context, _ resource.SchemaRequest, r
223224
},
224225
},
225226
},
226-
"quota_definitions": schema.ListAttribute{
227+
"quota_definitions": schema.SetAttribute{
227228
MarkdownDescription: "List of quota definitions for the platform.",
228229
Optional: true,
229230
Computed: true,
230231
Sensitive: false,
231232
ElementType: types.ObjectType{
232233
AttrTypes: quotaDefinitionAttrTypes,
233234
},
234-
Default: listdefault.StaticValue(types.ListValueMust(types.ObjectType{
235+
Default: setdefault.StaticValue(types.SetValueMust(types.ObjectType{
235236
AttrTypes: quotaDefinitionAttrTypes,
236237
}, []attr.Value{})),
237238
},

0 commit comments

Comments
 (0)