Skip to content

Commit

Permalink
assign client type
Browse files Browse the repository at this point in the history
  • Loading branch information
miagilepner committed May 23, 2023
1 parent 7ad03db commit c212cc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vault/logical_system_activity_write_testonly.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,17 @@ func (s *singleMonthActivityClients) addNewClients(c *generation.Client, mountAc
if c.Count > 1 {
count = int(c.Count)
}
clientType := entityActivityType
if c.NonEntity {
clientType = nonEntityTokenActivityType
}
for i := 0; i < count; i++ {
record := &activity.EntityRecord{
ClientID: c.Id,
NamespaceID: c.Namespace,
NonEntity: c.NonEntity,
MountAccessor: mountAccessor,
ClientType: clientType,
}
if record.ClientID == "" {
var err error
Expand Down

0 comments on commit c212cc3

Please sign in to comment.