diff --git a/internal/provider/node_resource.go b/internal/provider/node_resource.go index b9118a2..7e7b9fb 100644 --- a/internal/provider/node_resource.go +++ b/internal/provider/node_resource.go @@ -282,6 +282,8 @@ func (r *nodeResource) Create(ctx context.Context, req resource.CreateRequest, r plan.CreatedAt = types.StringValue(node.CreatedAt.Format(time.RFC3339)) plan.UpdatedAt = types.StringValue(node.UpdatedAt.Format(time.RFC3339)) + plan.Allocations = make([]Allocation, len(nodeAllocations)) + for _, allocation := range nodeAllocations { plan.Allocations = append(plan.Allocations, Allocation{ ID: types.Int32Value(allocation.ID), @@ -489,6 +491,8 @@ func (r *nodeResource) Update(ctx context.Context, req resource.UpdateRequest, r plan.CreatedAt = types.StringValue(node.CreatedAt.Format(time.RFC3339)) plan.UpdatedAt = types.StringValue(node.UpdatedAt.Format(time.RFC3339)) + plan.Allocations = make([]Allocation, len(nodeAllocations)) + for _, allocation := range nodeAllocations { plan.Allocations = append(plan.Allocations, Allocation{ ID: types.Int32Value(allocation.ID),