Skip to content

Commit

Permalink
bugfix: typos in acl role commands (#15382)
Browse files Browse the repository at this point in the history
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
  • Loading branch information
pkazmierczak and jrasell committed Nov 25, 2022
1 parent 8018dd0 commit ecd454e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/15382.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: corrected typos in ACL role create/delete CLI commands
```
2 changes: 1 addition & 1 deletion command/acl_role_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion command/acl_role_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ecd454e

Please sign in to comment.