Skip to content

Commit

Permalink
Fixup egress IP display
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterCxy committed Sep 12, 2024
1 parent 129ac98 commit f3b01fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/command/machine/egress_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ func runListEgressIps(ctx context.Context) (err error) {
rows := make([][]string, 0, 1)

for machine, ips := range machineIPs {
ipStr := make([]string, len(ips))
ipStr := make([]string, 0)
for _, ip := range ips {
ipStr = append(ipStr, ip.String())
}
rows = append(rows, []string{machine, strings.Join(ipStr, ",")})
}

out := iostreams.FromContext(ctx).Out
render.Table(out, "", rows, "Machine", "Egress IPs")
render.Table(out, "", rows, "Machine ID", "Egress IPs")
return nil
}

0 comments on commit f3b01fb

Please sign in to comment.