From 09939213ea6584992aa4ea2fd62b98bf1452641d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Tue, 12 May 2020 18:10:35 +0200 Subject: [PATCH] fix: due to #1010 --- internal/namespaces/registry/v1/custom_logout.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/namespaces/registry/v1/custom_logout.go b/internal/namespaces/registry/v1/custom_logout.go index 9668ffeab8..595cc9f257 100644 --- a/internal/namespaces/registry/v1/custom_logout.go +++ b/internal/namespaces/registry/v1/custom_logout.go @@ -2,7 +2,6 @@ package registry import ( "context" - "fmt" "os/exec" "reflect" @@ -38,16 +37,8 @@ You will need to have the chosen binary installed on your system and in your PAT func registryLogoutRun(ctx context.Context, argsI interface{}) (i interface{}, e error) { args := argsI.(*registryLogoutArgs) - 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 cmdArgs := []string{"logout", endpoint}