cli: ensure node status and drain use correct cmd name. (#13656)

This commit is contained in:
James Rasell 2022-07-11 09:50:42 +02:00 committed by GitHub
parent 17a467020c
commit 9eb63c9e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

3
.changelog/13656.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
cli: Fixed a bug in the names of the `node drain` and `node status` sub-commands
```

View File

@ -126,7 +126,7 @@ func (c *NodeDrainCommand) AutocompleteArgs() complete.Predictor {
}) })
} }
func (c *NodeDrainCommand) Name() string { return "node-drain" } func (c *NodeDrainCommand) Name() string { return "node drain" }
func (c *NodeDrainCommand) Run(args []string) int { func (c *NodeDrainCommand) Run(args []string) int {
var enable, disable, detach, force, var enable, disable, detach, force,

View File

@ -141,7 +141,7 @@ func (c *NodeStatusCommand) AutocompleteArgs() complete.Predictor {
}) })
} }
func (c *NodeStatusCommand) Name() string { return "node-status" } func (c *NodeStatusCommand) Name() string { return "node status" }
func (c *NodeStatusCommand) Run(args []string) int { func (c *NodeStatusCommand) Run(args []string) int {