Skip to content

Commit 312d267

Browse files
committed
revert nil pointer fix
1 parent bbb4119 commit 312d267

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

controllers/azurejson_machinetemplate_controller.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,6 @@ func (r *AzureJSONTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Re
104104
return ctrl.Result{}, nil
105105
}
106106

107-
if cluster.Spec.InfrastructureRef == nil {
108-
log.Info("cluster.Spec.InfrastructureRef is nil")
109-
return ctrl.Result{}, nil
110-
}
111-
112107
// only look at azure clusters
113108
if cluster.Spec.InfrastructureRef.Kind != "AzureCluster" {
114109
log.WithValues("kind", cluster.Spec.InfrastructureRef.Kind).Info("infra ref was not an AzureCluster")

0 commit comments

Comments
 (0)