Skip to content

Commit

Permalink
actions test
Browse files Browse the repository at this point in the history
  • Loading branch information
datamel committed Jul 20, 2021
1 parent cb9438c commit 755967e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cylc/uiserver/authorise.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,10 @@ def get_groups(username: str) -> List[str]:
# NGROUPS_MAX used to ensure we are not sending a groups number which is
# too big for the system which would result in an OverflowError when
# fetching groups
groupmax = (os.NGROUPS_MAX + 1) # type: ignore
group_ids = os.getgrouplist(username, groupmax)
group_ids.remove(groupmax)
# groupmax = (os.NGROUPS_MAX + 1) # type: ignore
# group_ids = os.getgrouplist(username, groupmax)
# group_ids.remove(groupmax)
group_ids = os.getgroups()
# turn list of group_ids into group names with group identifier prepended
return list(map(
lambda x: f'{Authorization.GRP_IDENTIFIER}{grp.getgrgid(x).gr_name}',
Expand Down

0 comments on commit 755967e

Please sign in to comment.