diff --git a/CHANGELOG.md b/CHANGELOG.md index 666d2951a..c5d0678d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cmd/config.go b/cmd/config.go index 2bb6fd295..699cd094a 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -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