Skip to content

Commit

Permalink
use corect variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ElanHasson authored Dec 12, 2023
1 parent 2acea3b commit 9ce68ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster-autoscaler/cloudprovider/rancher/rancher_nodegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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{
Expand Down

0 comments on commit 9ce68ed

Please sign in to comment.