backport of commit ef6814388c1adae3ee2bbe317719aded15275648 (#18720)
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
This commit is contained in:
parent
7725931942
commit
441d733046
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
cli: Fixed an unexpected behavior of the `nomad acl token update` command that could cause a management token to be downgraded to client on update
|
||||
```
|
|
@ -30,7 +30,7 @@ Update Options:
|
|||
Sets the human readable name for the ACL token.
|
||||
|
||||
-type="client"
|
||||
Sets the type of token. Must be one of "client" (default), or "management".
|
||||
Sets the type of token. Must be one of "client" or "management".
|
||||
|
||||
-global=false
|
||||
Toggles the global mode of the token. Global tokens are replicated to all regions.
|
||||
|
@ -70,7 +70,7 @@ func (c *ACLTokenUpdateCommand) Run(args []string) int {
|
|||
flags := c.Meta.FlagSet(c.Name(), FlagSetClient)
|
||||
flags.Usage = func() { c.Ui.Output(c.Help()) }
|
||||
flags.StringVar(&name, "name", "", "")
|
||||
flags.StringVar(&tokenType, "type", "client", "")
|
||||
flags.StringVar(&tokenType, "type", "", "")
|
||||
flags.BoolVar(&global, "global", false, "")
|
||||
flags.Var((funcVar)(func(s string) error {
|
||||
policies = append(policies, s)
|
||||
|
|
|
@ -25,8 +25,7 @@ The `acl token update` command requires an existing token's accessor ID.
|
|||
|
||||
- `-name`: Sets the human readable name for the ACL token.
|
||||
|
||||
- `-type`: Sets the type of token. Must be one of "client" (default), or
|
||||
"management".
|
||||
- `-type`: Sets the type of token. Must be one of "client" or "management".
|
||||
|
||||
- `-global`: Toggles the global mode of the token. Global tokens are replicated
|
||||
to all regions. Defaults false.
|
||||
|
|
Loading…
Reference in New Issue