From f3b01fb826b4826d84004d8532b48d3665640b64 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Thu, 12 Sep 2024 10:29:41 -0400 Subject: [PATCH] Fixup egress IP display --- internal/command/machine/egress_ip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/command/machine/egress_ip.go b/internal/command/machine/egress_ip.go index f424d41880..4510ab1ebc 100644 --- a/internal/command/machine/egress_ip.go +++ b/internal/command/machine/egress_ip.go @@ -126,7 +126,7 @@ 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()) } @@ -134,6 +134,6 @@ func runListEgressIps(ctx context.Context) (err error) { } out := iostreams.FromContext(ctx).Out - render.Table(out, "", rows, "Machine", "Egress IPs") + render.Table(out, "", rows, "Machine ID", "Egress IPs") return nil }