Browse Source

fix:when assumerole get wrong host

wenzuochao 6 years ago
parent
commit
1205de9498
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sdk/client.go

+ 1 - 1
sdk/client.go

@@ -333,7 +333,7 @@ func (client *Client) buildRequestWithSigner(request requests.AcsRequest, signer
 
 	// resolve endpoint
 	endpoint := request.GetDomain()
-	if endpoint == "" && client.EndpointType != "" {
+	if endpoint == "" && client.EndpointType != "" && request.GetProduct() != "Sts" {
 		if client.EndpointMap != nil && client.Network == "" || client.Network == "public" {
 			endpoint = client.EndpointMap[regionId]
 		}