Skip to content

Commit

Permalink
fix(providerID): fix regionn in providerID when identityRef.Region is…
Browse files Browse the repository at this point in the history
… inherited from cluster object

Signed-off-by: MatthieuFin <[email protected]>
  • Loading branch information
MatthieuFin committed Oct 29, 2024
1 parent 148d8bd commit 902e688
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/openstackmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ func (r *OpenStackMachineReconciler) reconcileNormal(ctx context.Context, scope
Address: instanceStatus.Name(),
})
openStackMachine.Status.Addresses = addresses
if openStackMachine.Spec.IdentityRef == nil {
openStackMachine.Spec.IdentityRef = &openStackCluster.Spec.IdentityRef
}

result := r.reconcileMachineState(scope, openStackMachine, machine, machineServer)
if result != nil {
Expand Down

0 comments on commit 902e688

Please sign in to comment.