Skip to content

Commit

Permalink
fix: due to scaleway#1010
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed May 12, 2020
1 parent 1b70993 commit 0993921
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/namespaces/registry/v1/custom_logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package registry

import (
"context"
"fmt"
"os/exec"
"reflect"

Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 0993921

Please sign in to comment.