Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Dec 18, 2024
1 parent 21168f2 commit 2cfc574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/cli/hpc_access_cli/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def load_groups(self) -> List[LdapGroup]:
raise ValueError(f"Missing LDAP attribute gidNumber for {entry.entry_dn}")
owner_dn = attribute_as_str(entry["bih-groupOwnerDN"])
delegate_dns = attribute_list_as_str_list(entry["bih-groupDelegateDNs"])
member_uids = list(set(attribute_list_as_str_list(entry.memberUid)))
member_uids = attribute_list_as_str_list(entry.memberUid).sort()
result.append(
LdapGroup(
dn=entry.entry_dn,
Expand Down
2 changes: 1 addition & 1 deletion utils/cli/hpc_access_cli/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def _build_ldap_groups(self, state: HpcaccessState) -> Dict[str, LdapGroup]:
description=project.description,
owner_dn=owner_dn,
delegate_dns=[user_dn(delegate)] if delegate else [],
member_uids=list(set(state.hpc_users[m].username for m in project.members)),
member_uids=[state.hpc_users[m].username for m in project.members].sort(),
)
return result

Expand Down

0 comments on commit 2cfc574

Please sign in to comment.