mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 22:21:30 +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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
tokenRaw := req.Secret.InternalData["accessor_id"]
|
accessorIDRaw := req.Secret.InternalData["accessor_id"]
|
||||||
_, err = c.ACLTokens().Delete(tokenRaw.(string), nil)
|
_, err = c.ACLTokens().Delete(accessorIDRaw.(string), nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user