diff options
author | appilon <apilon@hashicorp.com> | 2019-02-27 16:43:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 16:43:31 -0500 |
commit | 844b5a68d8af4791755b8f0ad293cc99f5959183 (patch) | |
tree | 255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go | |
parent | 303b299eeb6b06e939e35905e4b34cb410dd9dc3 (diff) | |
parent | 15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (diff) | |
download | terraform-provider-statuscake-844b5a68d8af4791755b8f0ad293cc99f5959183.tar.gz terraform-provider-statuscake-844b5a68d8af4791755b8f0ad293cc99f5959183.tar.zst terraform-provider-statuscake-844b5a68d8af4791755b8f0ad293cc99f5959183.zip |
Merge pull request #27 from terraform-providers/go-modules-2019-02-22
[MODULES] Switch to Go Modules
Diffstat (limited to 'vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go')
-rw-r--r-- | vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go index ec3ffe4..a7fbc2d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go | |||
@@ -8,7 +8,6 @@ import ( | |||
8 | 8 | ||
9 | "github.com/aws/aws-sdk-go/aws" | 9 | "github.com/aws/aws-sdk-go/aws" |
10 | "github.com/aws/aws-sdk-go/aws/awserr" | 10 | "github.com/aws/aws-sdk-go/aws/awserr" |
11 | "github.com/aws/aws-sdk-go/aws/awsutil" | ||
12 | "github.com/aws/aws-sdk-go/aws/request" | 11 | "github.com/aws/aws-sdk-go/aws/request" |
13 | ) | 12 | ) |
14 | 13 | ||
@@ -113,15 +112,9 @@ func updateEndpointForAccelerate(r *request.Request) { | |||
113 | // Attempts to retrieve the bucket name from the request input parameters. | 112 | // Attempts to retrieve the bucket name from the request input parameters. |
114 | // If no bucket is found, or the field is empty "", false will be returned. | 113 | // If no bucket is found, or the field is empty "", false will be returned. |
115 | func bucketNameFromReqParams(params interface{}) (string, bool) { | 114 | func bucketNameFromReqParams(params interface{}) (string, bool) { |
116 | b, _ := awsutil.ValuesAtPath(params, "Bucket") | 115 | if iface, ok := params.(bucketGetter); ok { |
117 | if len(b) == 0 { | 116 | b := iface.getBucket() |
118 | return "", false | 117 | return b, len(b) > 0 |
119 | } | ||
120 | |||
121 | if bucket, ok := b[0].(*string); ok { | ||
122 | if bucketStr := aws.StringValue(bucket); bucketStr != "" { | ||
123 | return bucketStr, true | ||
124 | } | ||
125 | } | 118 | } |
126 | 119 | ||
127 | return "", false | 120 | return "", false |