Skip to content

Commit

Permalink
Fix bug with config add command (#537)
Browse files Browse the repository at this point in the history
Fixes issue with adding new config.
  • Loading branch information
kobajagi authored Sep 5, 2023
1 parent ae12a40 commit 31880db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- sks show: display whether auto-upgrade is enabled #534

### Bug Fixes

- config add: fix adding new config (#537)

## 1.72.1

### Deprecations
Expand Down
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 31880db

Please sign in to comment.