Skip to content

Commit

Permalink
re-add annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Apr 23, 2020
1 parent 13ca645 commit 8258cb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/azuremachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,13 @@ func (r *AzureMachineReconciler) reconcileNormal(ctx context.Context, machineSco
// Make sure Spec.ProviderID is always set.
machineScope.SetProviderID(fmt.Sprintf("azure:////%s", vm.ID))

// Proceed to reconcile the AzureMachine state.
machineScope.SetVMState(vm.State)
machineScope.SetAnnotation("cluster-api-provider-azure", "true")

machineScope.SetAddresses(vm.Addresses)

// Proceed to reconcile the AzureMachine state.
machineScope.SetVMState(vm.State)

switch vm.State {
case infrav1.VMStateSucceeded:
machineScope.V(2).Info("VM is running", "id", *machineScope.GetVMID())
Expand Down

0 comments on commit 8258cb5

Please sign in to comment.