diff --git a/pkg/context/context.go b/pkg/context/context.go index 9fc9e208d7..55dedc2354 100644 --- a/pkg/context/context.go +++ b/pkg/context/context.go @@ -66,7 +66,7 @@ func IsControlPlaneMachine(nma *infrav1.NutanixMachine) bool { if nma == nil { return false } - _, ok := nma.GetLabels()[capiv1.MachineControlPlaneLabel] + _, ok := nma.GetLabels()[capiv1.MachineControlPlaneNameLabel] return ok }