From 3a6b06e628f987124b55add39b8ae2f42638901b Mon Sep 17 00:00:00 2001 From: Furkat Gofurov Date: Tue, 21 Jan 2025 15:32:06 +0200 Subject: [PATCH] Fix linter errors Signed-off-by: Furkat Gofurov --- pkg/rke2/control_plane.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rke2/control_plane.go b/pkg/rke2/control_plane.go index 1f03a8cf..e80e21d4 100644 --- a/pkg/rke2/control_plane.go +++ b/pkg/rke2/control_plane.go @@ -181,7 +181,7 @@ func (c *ControlPlane) NextFailureDomainForScaleUp(ctx context.Context) *string return nil } - return capifd.PickFewest(ctx, c.FailureDomains().FilterControlPlane(), c.UpToDateMachines()) + return capifd.PickFewest(ctx, c.FailureDomains().FilterControlPlane(), c.Machines, c.UpToDateMachines()) } // InitialControlPlaneConfig returns a new RKE2ConfigSpec that is to be used for an initializing control plane.