fixing a minor bug
* incorrectly defined initialisation for defaultdict Change-Id: I5343c69b53c9991ebe1fc1b37a6cbaf7555e6206
This commit is contained in:
parent
6c8a4da2df
commit
093ed80790
@ -113,7 +113,7 @@ class IdentityManager(object):
|
||||
role_dict = {role.id: role for role in roles}
|
||||
|
||||
user_assignments = self.ks_client.role_assignments.list(user=user)
|
||||
projects = defaultdict([])
|
||||
projects = defaultdict(list)
|
||||
for assignment in user_assignments:
|
||||
project = assignment.scope['project']['id']
|
||||
projects[project].append(role_dict[assignment.role['id']])
|
||||
|
Loading…
Reference in New Issue
Block a user