Skip to content

Commit

Permalink
refactor(zones): Update zone output type
Browse files Browse the repository at this point in the history
  • Loading branch information
mlec1 committed Oct 14, 2024
1 parent 59a5b63 commit e1fe426
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import (

"github.com/exoscale/cli/pkg/globalstate"
"github.com/exoscale/cli/pkg/output"
v3 "github.com/exoscale/egoscale/v3"
)

type zoneListItemOutput struct {
Name string `json:"name"`
Name v3.ZoneName `json:"name"`
}

type zoneListOutput []zoneListItemOutput
Expand Down Expand Up @@ -55,7 +56,7 @@ func listZones() (output.Outputter, error) {
for _, zone := range zones.Zones {

out = append(out, zoneListItemOutput{
Name: string(zone.Name),
Name: zone.Name,
})
}

Expand Down

0 comments on commit e1fe426

Please sign in to comment.