Skip to content

Commit d91d9f1

Browse files
committed
Copy InstanceID from OpenStackServer to OpenStackMachine
1 parent ff5788e commit d91d9f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/openstackmachine_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ func (r *OpenStackMachineReconciler) reconcileMachineState(scope *scope.WithLogg
423423

424424
// Set properties required by CAPI machine controller
425425
openStackMachine.Spec.ProviderID = ptr.To(fmt.Sprintf("openstack:///%s", *openStackServer.Status.InstanceID))
426+
openStackMachine.Status.InstanceID = openStackServer.Status.InstanceID
426427
openStackMachine.Status.Ready = true
427428
case infrav1.InstanceStateError:
428429
// If the machine has a NodeRef then it must have been working at some point,

0 commit comments

Comments
 (0)