cmd/tailscale/cli: fix exit node status output (#11076)

This change fixes the format of tailscale status output when location
based exit nodes are present.

Fixes #11065

Signed-off-by: Charlotte Brandhorst-Satzkorn <charlotte@tailscale.com>
This commit is contained in:
Charlotte Brandhorst-Satzkorn 2024-02-08 14:29:01 -08:00 committed by GitHub
parent 6c79f55d48
commit 0f042b9814
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,8 +228,8 @@ func runStatus(ctx context.Context, args []string) error {
} }
Stdout.Write(buf.Bytes()) Stdout.Write(buf.Bytes())
if locBasedExitNode { if locBasedExitNode {
println() outln()
println("# To see the full list of exit nodes, including location-based exit nodes, run `tailscale exit-node list` \n") printf("# To see the full list of exit nodes, including location-based exit nodes, run `tailscale exit-node list` \n")
} }
if len(st.Health) > 0 { if len(st.Health) > 0 {
outln() outln()