Skip to content

Commit 3b17cfd

Browse files
authored
fix(baremetal): fix updating of name and description (#1826)
1 parent 98aad59 commit 3b17cfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scaleway/resource_baremetal_server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,12 +487,12 @@ func resourceScalewayBaremetalServerUpdate(ctx context.Context, d *schema.Resour
487487
hasChanged := false
488488

489489
if d.HasChange("name") {
490-
req.Name = expandUpdatedStringPtr("name")
490+
req.Name = expandUpdatedStringPtr(d.Get("name"))
491491
hasChanged = true
492492
}
493493

494494
if d.HasChange("description") {
495-
req.Description = expandUpdatedStringPtr("description")
495+
req.Description = expandUpdatedStringPtr(d.Get("description"))
496496
hasChanged = true
497497
}
498498

0 commit comments

Comments
 (0)