Skip to content

Commit

Permalink
fix: due to #1010
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed May 12, 2020
1 parent aeb7817 commit 1b70993
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/namespaces/registry/v1/custom_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ func registryLoginRun(ctx context.Context, argsI interface{}) (i interface{}, e
client := core.ExtractClient(ctx)

region := args.Region.String()
if region == "" {
scwRegion, ok := client.GetDefaultRegion()
if !ok {
return nil, fmt.Errorf("no default region configured")
}
region = scwRegion.String()
}
endpoint := endpointPrefix + region + endpointSuffix

secretKey, ok := client.GetSecretKey()
Expand Down

0 comments on commit 1b70993

Please sign in to comment.