@@ -1467,7 +1467,7 @@ func (s *CoreInstanceResourceCrud) Update() error {
1467
1467
}
1468
1468
}
1469
1469
1470
- // Update shape, shape config, platform config, source details, fault domain and launch options
1470
+ // Update shape, shape config, platform config, source details, fault domain, launch options, and capacity reservation
1471
1471
err := s .updateOptionsViaWorkRequest ()
1472
1472
1473
1473
if err != nil {
@@ -1501,10 +1501,6 @@ func (s *CoreInstanceResourceCrud) Update() error {
1501
1501
}
1502
1502
}
1503
1503
1504
- if capacityReservationId , ok := s .D .GetOkExists ("capacity_reservation_id" ); ok {
1505
- tmp := capacityReservationId .(string )
1506
- request .CapacityReservationId = & tmp
1507
- }
1508
1504
if dedicatedVmHostId , ok := s .D .GetOkExists ("dedicated_vm_host_id" ); ok {
1509
1505
tmp := dedicatedVmHostId .(string )
1510
1506
request .DedicatedVmHostId = & tmp
@@ -4075,6 +4071,11 @@ func (s *CoreInstanceResourceCrud) updateOptionsViaWorkRequest() error {
4075
4071
}
4076
4072
}
4077
4073
4074
+ if capacityReservationId , ok := s .D .GetOkExists ("capacity_reservation_id" ); ok {
4075
+ tmp := capacityReservationId .(string )
4076
+ request .CapacityReservationId = & tmp
4077
+ }
4078
+
4078
4079
if platformConfig , ok := s .D .GetOkExists ("platform_config" ); ok && s .D .HasChange ("platform_config" ) {
4079
4080
if tmpList := platformConfig .([]interface {}); len (tmpList ) > 0 {
4080
4081
fieldKeyFormat := fmt .Sprintf ("%s.%d.%%s" , "platform_config" , 0 )
0 commit comments