Skip to content

Commit

Permalink
Fix bug with config add command
Browse files Browse the repository at this point in the history
  • Loading branch information
kobajagi committed Sep 5, 2023
1 parent ae12a40 commit ce3853c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ func chooseZone(client *egoscale.Client, zones []string) (string, error) {
if zones == nil {

ctx := exoapi.WithEndpoint(gContext, exoapi.NewReqEndpoint(defaultEnvironment, defaultZone))
zones, err := client.ListZones(ctx)
var err error
zones, err = client.ListZones(ctx)

if err != nil {
return "", err
Expand Down

0 comments on commit ce3853c

Please sign in to comment.