Skip to content

Commit

Permalink
Ability to clear nickname
Browse files Browse the repository at this point in the history
  • Loading branch information
bravechamp committed Mar 13, 2022
1 parent 663e838 commit 9901d6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/headscale/cli/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,13 @@ var renameNodeCmd = &cobra.Command{
defer cancel()
defer conn.Close()

newName := ""
if len(args) > 0 {
newName = args[0]
}
request := &v1.RenameMachineRequest{
MachineId: identifier,
NewName: args[0],
NewName: newName,
}

response, err := client.RenameMachine(ctx, request)
Expand Down

0 comments on commit 9901d6b

Please sign in to comment.