mirror of https://github.com/kubernetes/kops.git
Fix swallowed err variable in vfs package
This commit is contained in:
parent
d2e5d2064f
commit
4e847ce020
|
@ -130,7 +130,9 @@ func (s *S3Context) getRegionForBucket(bucket string) (string, error) {
|
|||
var response *s3.GetBucketLocationOutput
|
||||
|
||||
s3Client, err := s.getClient(awsRegion)
|
||||
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("error connecting to S3: %s", err)
|
||||
}
|
||||
// Attempt one GetBucketLocation call the "normal" way (i.e. as the bucket owner)
|
||||
response, err = s3Client.GetBucketLocation(request)
|
||||
|
||||
|
|
Loading…
Reference in New Issue