Skip to content

Commit 61c9bde

Browse files
committed
fix: use list attribute for env node groups
1 parent 8504516 commit 61c9bde

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/provider/common/attributes.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ func GetLoadBalancingStrategyAttribute(required, optional, computed bool) rschem
149149
}
150150
}
151151

152-
func GetNodeGroupsAttribute(required, optional, computed bool) rschema.SetNestedAttribute {
153-
return rschema.SetNestedAttribute{
152+
func GetNodeGroupsAttribute(required, optional, computed bool) rschema.ListNestedAttribute {
153+
return rschema.ListNestedAttribute{
154154
NestedObject: NodeGroupAttribute,
155155
Optional: optional,
156156
Required: required,
157157
Computed: computed,
158158
MarkdownDescription: NODE_GROUP_DESCRIPTION,
159-
Validators: []validator.Set{
160-
setvalidator.SizeAtLeast(1),
159+
Validators: []validator.List{
160+
listvalidator.SizeAtLeast(1),
161161
},
162162
}
163163
}

0 commit comments

Comments
 (0)