Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions stackit/internal/services/iaas/networkinterface/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,8 @@ func (r *networkInterfaceResource) Schema(_ context.Context, _ resource.SchemaRe
},
"type": schema.StringAttribute{
Description: "Type of network interface. Some of the possible values are: " + utils.FormatPossibleValues(typeOptions...),
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
// UseStateForUnknown should never be set here. This value can change during updates and cause an error.
Computed: true,
},
},
}
Expand Down
6 changes: 2 additions & 4 deletions stackit/internal/services/iaas/volume/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,8 @@ func (r *volumeResource) Schema(_ context.Context, _ resource.SchemaRequest, res
},
"server_id": schema.StringAttribute{
Description: "The server ID of the server to which the volume is attached to.",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
// UseStateForUnknown should never be set here. This value can change during updates and cause an error.
Computed: true,
Validators: []validator.String{
validate.UUID(),
validate.NoSeparator(),
Expand Down
Loading