From 458744b10ad01184c841aeace1da1392971bf414 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Fri, 8 Jul 2022 14:59:14 +0000 Subject: [PATCH 1/2] backport of commit 4a68201ada611862b331c9dd43ff55407b86e39e --- command/node_drain.go | 2 +- command/node_status.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/command/node_drain.go b/command/node_drain.go index 38cab32840a..c9ce8cccc73 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 b4cef692626..d46f3e28144 100644 --- a/command/node_status.go +++ b/command/node_status.go @@ -115,7 +115,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 { From 568da4d5526bdfa5fcda4cf77bc7f194dad6de98 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Fri, 8 Jul 2022 15:35:29 +0000 Subject: [PATCH 2/2] backport of commit 452bd4a9bcb46ea2c4cde8a5375f76a89992ad90 --- .changelog/13656.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/13656.txt diff --git a/.changelog/13656.txt b/.changelog/13656.txt new file mode 100644 index 00000000000..951a780f038 --- /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 +```