Skip to content

Commit 644e202

Browse files
authored
Merge pull request #16815 from rifelpet/automated-cherry-pick-of-#16809-origin-release-1.30
Automated cherry pick of #16809: Fix ipv6 prefix detection with aws-sdk-go-v2
2 parents 9bced90 + f139617 commit 644e202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

upup/pkg/fi/nodeup/nodetasks/prefix.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import (
2525
"path"
2626
"strings"
2727

28-
awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
2928
awsconfig "github.com/aws/aws-sdk-go-v2/config"
3029
"github.com/aws/aws-sdk-go-v2/feature/ec2/imds"
3130
"github.com/aws/aws-sdk-go-v2/service/ec2"
31+
smithyhttp "github.com/aws/smithy-go/transport/http"
3232
"k8s.io/klog/v2"
3333
"k8s.io/kops/pkg/apis/kops"
3434
"k8s.io/kops/upup/pkg/fi"
@@ -128,7 +128,7 @@ func getInstanceMetadataList(ctx context.Context, category string) ([]string, er
128128
metadata := imds.NewFromConfig(cfg)
129129
resp, err := metadata.GetMetadata(ctx, &imds.GetMetadataInput{Path: category})
130130
if err != nil {
131-
var awsErr *awshttp.ResponseError
131+
var awsErr *smithyhttp.ResponseError
132132
if errors.As(err, &awsErr) && awsErr.HTTPStatusCode() == http.StatusNotFound {
133133
return nil, nil
134134
} else {

0 commit comments

Comments
 (0)