Skip to content

Commit 7755a51

Browse files
Jonas Gottliebrubenhoenle
authored andcommitted
fix: allow change without recompute
1 parent c358562 commit 7755a51

File tree

1 file changed

+4
-6
lines changed
  • stackit/internal/services/iaasalpha/routingtable/table

1 file changed

+4
-6
lines changed

stackit/internal/services/iaasalpha/routingtable/table/resource.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,6 @@ func (r *routingTableResource) Schema(_ context.Context, _ resource.SchemaReques
212212
Optional: true,
213213
Computed: true,
214214
Default: booldefault.StaticBool(true),
215-
PlanModifiers: []planmodifier.Bool{
216-
boolplanmodifier.RequiresReplace(),
217-
},
218215
},
219216
"created_at": schema.StringAttribute{
220217
Description: "Date-time when the routing table was created",
@@ -531,8 +528,9 @@ func toUpdatePayload(ctx context.Context, model *Model, currentLabels types.Map)
531528
}
532529

533530
return &iaasalpha.UpdateRoutingTableOfAreaPayload{
534-
Description: conversion.StringValueToPointer(model.Description),
535-
Name: conversion.StringValueToPointer(model.Name),
536-
Labels: &labels,
531+
Description: conversion.StringValueToPointer(model.Description),
532+
Name: conversion.StringValueToPointer(model.Name),
533+
Labels: &labels,
534+
DynamicRoutes: conversion.BoolValueToPointer(model.DynamicRoutes),
537535
}, nil
538536
}

0 commit comments

Comments
 (0)