From 9eb63c9e032a9c16313f021ce0f59d439f6a6118 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Mon, 11 Jul 2022 09:50:42 +0200 Subject: [PATCH] cli: ensure node status and drain use correct cmd name. (#13656) --- .changelog/13656.txt | 3 +++ command/node_drain.go | 2 +- command/node_status.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changelog/13656.txt diff --git a/.changelog/13656.txt b/.changelog/13656.txt new file mode 100644 index 000000000..951a780f0 --- /dev/null +++ b/.changelog/13656.txt @@ -0,0 +1,3 @@ +```release-note:bug +cli: Fixed a bug in the names of the `node drain` and `node status` sub-commands +``` diff --git a/command/node_drain.go b/command/node_drain.go index 38cab3284..c9ce8cccc 100644 --- a/command/node_drain.go +++ b/command/node_drain.go @@ -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, diff --git a/command/node_status.go b/command/node_status.go index cab875b8a..cd44f0154 100644 --- a/command/node_status.go +++ b/command/node_status.go @@ -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 {