From 73c84d4f6a60e96b563b7807c031bbef8042f556 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sun, 13 Nov 2022 22:40:57 +0100 Subject: [PATCH] Print hostname of the machine registered --- cmd/headscale/cli/nodes.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/headscale/cli/nodes.go b/cmd/headscale/cli/nodes.go index 375f274a..a5a10069 100644 --- a/cmd/headscale/cli/nodes.go +++ b/cmd/headscale/cli/nodes.go @@ -134,7 +134,9 @@ var registerNodeCmd = &cobra.Command{ return } - SuccessOutput(response.Machine, "Machine register", output) + SuccessOutput( + response.Machine, + fmt.Sprintf("Machine %s registered", response.Machine.GivenName), output) }, }