mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-26 21:21:12 +01:00
command/revoke: prefix
This commit is contained in:
parent
56dd1dbea0
commit
02f3f065c9
@ -35,7 +35,12 @@ func (c *RevokeCommand) Run(args []string) int {
|
||||
return 2
|
||||
}
|
||||
|
||||
if err := client.Sys().Revoke(vaultId); err != nil {
|
||||
if prefix {
|
||||
err = client.Sys().RevokePrefix(vaultId)
|
||||
} else {
|
||||
err = client.Sys().Revoke(vaultId)
|
||||
}
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf(
|
||||
"Revoke error: %s", err))
|
||||
return 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user