mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 14:11:10 +01:00
Renaming tokenRaw to accessorIDRaw to avoid confusion, as the token is not being used for revoking itself
This commit is contained in:
parent
3134c7262d
commit
e3a73ead35
@ -44,8 +44,8 @@ func (b *backend) secretTokenRevoke(
|
||||
return nil, err
|
||||
}
|
||||
|
||||
tokenRaw := req.Secret.InternalData["accessor_id"]
|
||||
_, err = c.ACLTokens().Delete(tokenRaw.(string), nil)
|
||||
accessorIDRaw := req.Secret.InternalData["accessor_id"]
|
||||
_, err = c.ACLTokens().Delete(accessorIDRaw.(string), nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user