mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
export more commons
This commit is contained in:
@@ -439,7 +439,7 @@ func (b *Backend) getOSSEndpointByRegion(access_key, secret_key, security_token,
|
||||
return nil, fmt.Errorf("unable to initialize the location client: %#v", err)
|
||||
|
||||
}
|
||||
locationClient.AppendUserAgent(httpclient.TerraformUA, TerraformVersion)
|
||||
locationClient.AppendUserAgent(httpclient.OpenTFUserAgent, TerraformVersion)
|
||||
endpointsResponse, err := locationClient.DescribeEndpoints(args)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("describe oss endpoint using region: %#v got an error: %#v", region, err)
|
||||
|
||||
@@ -6,6 +6,7 @@ package s3
|
||||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/httpclient"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@@ -394,8 +395,8 @@ func (b *Backend) Configure(obj cty.Value) tfdiags.Diagnostics {
|
||||
Token: stringAttr(obj, "token"),
|
||||
UserAgentProducts: []*awsbase.UserAgentProduct{
|
||||
{Name: "APN", Version: "1.0"},
|
||||
{Name: "placeholderplaceholderplaceholder", Version: "1.0"},
|
||||
{Name: "OpenTF", Version: version.String()},
|
||||
{Name: httpclient.OpenTFUserAgent, Version: "1.0"},
|
||||
{Name: httpclient.Organization, Version: version.String()},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user