Ability to clear nickname
This commit is contained in:
parent
663e8384a3
commit
9901d6b2e7
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue