diff --git a/azure/scope/managedmachinepool_test.go b/azure/scope/managedmachinepool_test.go index 3648d0e5dab..9b6154b585c 100644 --- a/azure/scope/managedmachinepool_test.go +++ b/azure/scope/managedmachinepool_test.go @@ -907,11 +907,11 @@ func getAzureMachinePool(name string, mode infrav1.NodePoolMode) *infrav1.AzureM } } -func getAzureMachinePoolWithScaling(name string, min, max int) *infrav1.AzureManagedMachinePool { +func getAzureMachinePoolWithScaling(name string, minVal, maxVal int) *infrav1.AzureManagedMachinePool { managedPool := getAzureMachinePool(name, infrav1.NodePoolModeUser) managedPool.Spec.Scaling = &infrav1.ManagedMachinePoolScaling{ - MinSize: ptr.To(min), - MaxSize: ptr.To(max), + MinSize: ptr.To(minVal), + MaxSize: ptr.To(maxVal), } return managedPool }