Skip to content

Commit fcc1c34

Browse files
fix(vpc-dhcp-reservation): add ForceNew on mac_address field for DHCP reservation (#1274)
The update method for DHCP reservation doesn't update the mac address (same as the api behind). Any change on this field must trigger a replacement, not an in-place update (which won't do anything). Co-authored-by: Rémy Léone <[email protected]>
1 parent c10f4c3 commit fcc1c34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scaleway/resource_vpc_public_gateway_dhcp_reservation.go

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func resourceScalewayVPCPublicGatewayDHCPReservation() *schema.Resource {
4141
"mac_address": {
4242
Type: schema.TypeString,
4343
Required: true,
44+
ForceNew: true,
4445
Description: "The MAC address to give a static entry to.",
4546
ValidateFunc: validation.IsMACAddress,
4647
},

0 commit comments

Comments
 (0)