Skip to content

Commit 2ea59fd

Browse files
committed
fix(baremetal): remove ForceNew offer
1 parent 8929c7e commit 2ea59fd

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

internal/services/baremetal/server.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,7 @@ func ResourceServer() *schema.Resource {
5656
"offer": {
5757
Type: schema.TypeString,
5858
Required: true,
59-
ForceNew: true,
6059
Description: "ID or name of the server offer",
61-
DiffSuppressFunc: func(_, oldValue, newValue string, d *schema.ResourceData) bool {
62-
// remove the locality from the IDs when checking diff
63-
if locality.ExpandID(newValue) == locality.ExpandID(oldValue) {
64-
return true
65-
}
66-
// if the offer was provided by name
67-
offerName, ok := d.GetOk("offer_name")
68-
69-
return ok && newValue == offerName
70-
},
7160
},
7261
"offer_id": {
7362
Type: schema.TypeString,

0 commit comments

Comments
 (0)