Skip to content

Commit

Permalink
cli: ensure node status and drain use correct cmd name. (#13656)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasell committed Jul 11, 2022
1 parent 264d2dd commit f219718
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/13656.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: Fixed a bug in the names of the `node drain` and `node status` sub-commands
```
2 changes: 1 addition & 1 deletion command/node_drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
var enable, disable, detach, force,
Expand Down
2 changes: 1 addition & 1 deletion command/node_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit f219718

Please sign in to comment.