Skip to content

Commit 6701f61

Browse files
authored
Merge pull request kubernetes-sigs#2153 from tsuzu/main
Copy InstanceID from OpenStackServer to OpenStackMachine
2 parents 1e2d65b + d91d9f1 commit 6701f61

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)