Skip to content

Commit

Permalink
tetragon:username: use login name instead of display name
Browse files Browse the repository at this point in the history
Signed-off-by: Djalal Harouni <[email protected]>
  • Loading branch information
tixxdz committed Jun 19, 2024
1 parent 2b31289 commit 96e5028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/reader/userdb/userdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (cache *UsersDBCache) LookupUser(uid uint32) (string, error) {
if err != nil {
return "", err
}
return userInfo.Name, nil
return userInfo.Username, nil
}

name, err := cache.lookupUser(uid)
Expand All @@ -67,7 +67,7 @@ func (cache *UsersDBCache) LookupUser(uid uint32) (string, error) {
if err != nil {
return "", err
}
name = userInfo.Name
name = userInfo.Username
cache.addUser(uid, name)
}
return name, nil
Expand Down

0 comments on commit 96e5028

Please sign in to comment.