diff --git a/apis/v1beta1/vspherefailuredomain_webhook_test.go b/apis/v1beta1/vspherefailuredomain_webhook_test.go index 8661a71ac9..0d0d210f9f 100644 --- a/apis/v1beta1/vspherefailuredomain_webhook_test.go +++ b/apis/v1beta1/vspherefailuredomain_webhook_test.go @@ -23,7 +23,6 @@ import ( "k8s.io/utils/pointer" ) -// nolint func TestVsphereFailureDomain_Default(t *testing.T) { tests := []struct { name string diff --git a/controllers/vspheredeploymentzone_controller_test.go b/controllers/vspheredeploymentzone_controller_test.go index 26a4616b05..22564052b2 100644 --- a/controllers/vspheredeploymentzone_controller_test.go +++ b/controllers/vspheredeploymentzone_controller_test.go @@ -466,7 +466,6 @@ func TestVSphereDeploymentZone_Reconcile(t *testing.T) { return conditions.IsFalse(vsphereDeploymentZone, infrav1.VSphereFailureDomainValidatedCondition) && conditions.GetReason(vsphereDeploymentZone, infrav1.VSphereFailureDomainValidatedCondition) == infrav1.NetworkNotFoundReason }, timeout).Should(BeTrue()) - }) t.Run("should create a deployment zone & failure domain with networkconfig", func(t *testing.T) { diff --git a/pkg/services/vimmachine.go b/pkg/services/vimmachine.go index 4f3e7ed2da..92b65284d2 100644 --- a/pkg/services/vimmachine.go +++ b/pkg/services/vimmachine.go @@ -504,7 +504,6 @@ func (v *VimMachineService) generateOverrideFunc(ctx *context.VIMMachineContext) for i := range vsphereFailureDomain.Spec.Topology.Networks { networkConfigs[i].NetworkName = vsphereFailureDomain.Spec.Topology.Networks[i] } - } if len(networkConfigs) > 0 {