From 1b709933e973f93887d24ff664903ab6a398b34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Tue, 12 May 2020 18:07:40 +0200 Subject: [PATCH] fix: due to #1010 --- internal/namespaces/registry/v1/custom_login.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/namespaces/registry/v1/custom_login.go b/internal/namespaces/registry/v1/custom_login.go index 29ad42085f..3634765de8 100644 --- a/internal/namespaces/registry/v1/custom_login.go +++ b/internal/namespaces/registry/v1/custom_login.go @@ -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()