Skip to content

Commit 23d7bac

Browse files
authored
Merge pull request #4942 from helio/fix-panic-log
fix: panic in MachinePool log
2 parents facb71f + 749cb25 commit 23d7bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure/scope/machinepool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ func (m *MachinePoolScope) DeleteMachine(ctx context.Context, ampm infrav1exp.Az
533533
return errors.Wrapf(err, "error getting owner Machine for AzureMachinePoolMachine %s/%s", ampm.Namespace, ampm.Name)
534534
}
535535
if machine == nil {
536-
log.V(2).Info("No owner Machine exists for AzureMachinePoolMachine", ampm, klog.KObj(&ampm))
536+
log.V(2).Info("No owner Machine exists for AzureMachinePoolMachine", "ampm", klog.KObj(&ampm))
537537
// If the AzureMachinePoolMachine does not have an owner Machine, do not attempt to delete the AzureMachinePoolMachine as the MachinePool controller will create the
538538
// Machine and we want to let it catch up. If we are too hasty to delete, that introduces a race condition where the AzureMachinePoolMachine could be deleted
539539
// just as the Machine comes online.

0 commit comments

Comments
 (0)