Skip to content

Commit

Permalink
fix setting slb endpoint by env do not work
Browse files Browse the repository at this point in the history
  • Loading branch information
gujingit committed May 27, 2022
1 parent dd36368 commit fd5b7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewSLBClientWithSecurityToken(accessKeyId string, accessKeySecret string, s
//Only for hangzhou
func NewSLBClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client {
endpoint := os.Getenv("SLB_ENDPOINT")
if endpoint == "" {
if endpoint != "" {
return NewSLBClientWithEndpointAndSecurityToken(endpoint, accessKeyId, accessKeySecret, securityToken, regionID)
}

Expand Down

0 comments on commit fd5b7af

Please sign in to comment.