Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

When retrieving the users in a group we're only interested in their u…

…sername

Otherwise this fails down the path.
  • Loading branch information...
pypingou committed Jul 12, 2016
1 parent df206a0 commit 0374f331376ec37cd616e55bf9e367745d0044ae
Showing with 2 additions and 1 deletion.
  1. +2 −1 fmn/rules/utils.py
@@ -201,9 +201,10 @@ def get_user_of_group(config, fas, groupname):
def creator():
if not fas:
return set()
return set(fas.group_members(groupname))
return set([u.username for u in fas.group_members(groupname)])
return _cache.get_or_create(key, creator)


def get_groups_of_user(config, fas, username):
''' Return the list of (pkgdb) groups to which the user belongs.

0 comments on commit 0374f33

Please sign in to comment.
You can’t perform that action at this time.