Skip to content

Commit

Permalink
Bugfix slb endpoint. (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
styumyum authored May 9, 2023
1 parent 76733f3 commit 6fe327c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alicloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (p *alicloudProvider) Configure(ctx context.Context, req provider.Configure

// AliCloud SLB Client
slbClientConfig := clientCredentialsConfig
slbClientConfig.Endpoint = tea.String("slb.aliyuncs.com")
slbClientConfig.Endpoint = tea.String(fmt.Sprintf("slb.%s.aliyuncs.com", region))
slbClient, err := alicloudSlbClient.NewClient(slbClientConfig)

if err != nil {
Expand Down

0 comments on commit 6fe327c

Please sign in to comment.