From 9ce68ed209cae734c31aa63fe08df889b1a0965d Mon Sep 17 00:00:00 2001 From: Elan Hasson <234704+ElanHasson@users.noreply.github.com> Date: Mon, 11 Dec 2023 21:05:38 -0500 Subject: [PATCH] use corect variables --- cluster-autoscaler/cloudprovider/rancher/rancher_nodegroup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster-autoscaler/cloudprovider/rancher/rancher_nodegroup.go b/cluster-autoscaler/cloudprovider/rancher/rancher_nodegroup.go index 9c5e3cc575b0..8fd9ce7b3220 100644 --- a/cluster-autoscaler/cloudprovider/rancher/rancher_nodegroup.go +++ b/cluster-autoscaler/cloudprovider/rancher/rancher_nodegroup.go @@ -467,7 +467,7 @@ func parseResourceAnnotations(annotations map[string]string) (corev1.ResourceLis memoryResources, err := resource.ParseQuantity(memory) if err != nil { - return nil, fmt.Errorf("unable to parse memory resources: %q: %w", memoryResources, err) + return nil, fmt.Errorf("unable to parse memory resources: %q: %w", memory, err) } ephemeralStorage, ok := annotations[resourceEphemeralStorageAnnotation] if !ok { @@ -476,7 +476,7 @@ func parseResourceAnnotations(annotations map[string]string) (corev1.ResourceLis ephemeralStorageResources, err := resource.ParseQuantity(ephemeralStorage) if err != nil { - return nil, fmt.Errorf("unable to parse ephemeral storage resources: %q: %w", ephemeralStorageResources, err) + return nil, fmt.Errorf("unable to parse ephemeral storage resources: %q: %w", ephemeralStorage, err) } return corev1.ResourceList{