use IsRoot helper before clientID generation in activity log (#12846)
* use IsRoot helper in activity log * use IsRoot helper in activity log
This commit is contained in:
parent
74eba6fa56
commit
19822781cc
|
@ -1600,9 +1600,8 @@ func (a *ActivityLog) HandleTokenUsage(entry *logical.TokenEntry) {
|
|||
return
|
||||
}
|
||||
|
||||
// Do not count root tokens in client count. This includes generated root tokens
|
||||
// as well.
|
||||
if len(entry.Policies) == 1 && entry.Policies[0] == "root" {
|
||||
// Do not count root tokens in client count.
|
||||
if entry.IsRoot() {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue