From ecd454e15d674aee75aeebb2bcb78ac2d0f2b136 Mon Sep 17 00:00:00 2001 From: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com> Date: Fri, 25 Nov 2022 10:28:33 +0100 Subject: [PATCH] bugfix: typos in acl role commands (#15382) Co-authored-by: James Rasell --- .changelog/15382.txt | 3 +++ command/acl_role_create.go | 2 +- command/acl_role_delete.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changelog/15382.txt diff --git a/.changelog/15382.txt b/.changelog/15382.txt new file mode 100644 index 000000000000..07067a9f9807 --- /dev/null +++ b/.changelog/15382.txt @@ -0,0 +1,3 @@ +```release-note:bug +cli: corrected typos in ACL role create/delete CLI commands +``` diff --git a/command/acl_role_create.go b/command/acl_role_create.go index ed1ac0c0b3b5..fa06f46c5cb9 100644 --- a/command/acl_role_create.go +++ b/command/acl_role_create.go @@ -26,7 +26,7 @@ type ACLRoleCreateCommand struct { // Help satisfies the cli.Command Help function. func (a *ACLRoleCreateCommand) Help() string { helpText := ` -Usage: nomad acl token create [options] +Usage: nomad acl role create [options] Create is used to create new ACL roles. Use requires a management token. diff --git a/command/acl_role_delete.go b/command/acl_role_delete.go index d7b4722975dd..6f35e3664d9e 100644 --- a/command/acl_role_delete.go +++ b/command/acl_role_delete.go @@ -42,7 +42,7 @@ func (a *ACLRoleDeleteCommand) AutocompleteArgs() complete.Predictor { return co func (a *ACLRoleDeleteCommand) Synopsis() string { return "Delete an existing ACL role" } // Name returns the name of this command. -func (a *ACLRoleDeleteCommand) Name() string { return "acl token delete" } +func (a *ACLRoleDeleteCommand) Name() string { return "acl role delete" } // Run satisfies the cli.Command Run function. func (a *ACLRoleDeleteCommand) Run(args []string) int {