mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-26 16:36:26 -06:00
remove redundent stringf
This commit is contained in:
parent
6fd17682dd
commit
d1b585bab6
@ -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(fmt.Sprintf("%s", httpclient.UserAgentApplication()), TerraformVersion)
|
||||
locationClient.AppendUserAgent(httpclient.UserAgentApplication(), 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)
|
||||
|
Loading…
Reference in New Issue
Block a user