Skip to content

Commit

Permalink
fix: aligned the VRF table columns (#444)
Browse files Browse the repository at this point in the history
Fixes #436
  • Loading branch information
displague committed Feb 2, 2024
2 parents e659a60 + 5dffeb7 commit 27f49c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/vrf/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ func (c *Client) Create() *cobra.Command {

data := make([][]string, 1)

// This output block below is probably incorrect but leaving it for now for testing later.
data[0] = []string{vrfRequest.GetId(), vrfRequest.GetName(), vrfRequest.GetDescription(), strconv.Itoa(int(vrfRequest.GetLocalAsn())), strings.Join(vrfRequest.GetIpRanges(), ","), vrfRequest.GetCreatedAt().String()}
header := []string{"ID", "Name", "Description", "LocalASN", "IPranges", "Created"}
data[0] = []string{vrfRequest.GetId(), vrfRequest.GetName(), vrfRequest.GetDescription(), strings.Join(vrfRequest.GetIpRanges(), ","), strconv.Itoa(int(vrfRequest.GetLocalAsn())), vrfRequest.GetCreatedAt().String()}
header := []string{"ID", "Name", "Description", "IPranges", "LocalASN", "Created"}

return c.Out.Output(vrfRequest, header, &data)
},
Expand Down

0 comments on commit 27f49c4

Please sign in to comment.