From 81f1cea7db9a9dc9b32b0265d67a2e5a2a6a3c1e Mon Sep 17 00:00:00 2001 From: danthegoodman1 Date: Sun, 21 Feb 2021 13:11:43 -0500 Subject: [PATCH] Add Fetch Error Output to Warning Log Add the output of the error to the log so users can identify why the autoscaler was unable to fetch the url. See https://github.com/kubernetes/autoscaler/issues/3891 --- cluster-autoscaler/cloudprovider/aws/aws_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-autoscaler/cloudprovider/aws/aws_util.go b/cluster-autoscaler/cloudprovider/aws/aws_util.go index 05600564fb..6085ffe89e 100644 --- a/cluster-autoscaler/cloudprovider/aws/aws_util.go +++ b/cluster-autoscaler/cloudprovider/aws/aws_util.go @@ -76,7 +76,7 @@ func GenerateEC2InstanceTypes(region string) (map[string]*InstanceType, error) { klog.V(1).Infof("fetching %s\n", url) res, err := http.Get(url) if err != nil { - klog.Warningf("Error fetching %s skipping...\n", url) + klog.Warningf("Error fetching %s skipping...\n%s\n", url, err) continue }