Skip to content

Commit

Permalink
Backport of cli: ensure node status and drain use correct cmd name. i…
Browse files Browse the repository at this point in the history
…nto release/1.3.x (#13666)

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored Jul 11, 2022
1 parent 3861720 commit db7596e
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 db7596e

Please sign in to comment.