Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8723acf

Browse files
committedOct 29, 2024··
fix(providerID): fix regionn in providerID when identityRef.Region is inherited from cluster object
1 parent 09a4645 commit 8723acf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎controllers/openstackmachine_controller.go

+3
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ func (r *OpenStackMachineReconciler) reconcileNormal(ctx context.Context, scope
391391
Address: instanceStatus.Name(),
392392
})
393393
openStackMachine.Status.Addresses = addresses
394+
if openStackMachine.Spec.IdentityRef == nil {
395+
openStackMachine.Spec.IdentityRef = &openStackCluster.Spec.IdentityRef
396+
}
394397

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

0 commit comments

Comments
 (0)
Please sign in to comment.