mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
cli: ensure node status and drain use correct cmd name. (#13656)
This commit is contained in:
3
.changelog/13656.txt
Normal file
3
.changelog/13656.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
cli: Fixed a bug in the names of the `node drain` and `node status` sub-commands
|
||||
```
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user