"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/assignment/core.py" between
keystone-16.0.0.tar.gz and keystone-16.0.1.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Train" series (latest release).

core.py  (keystone-16.0.0):core.py  (keystone-16.0.1)
skipping to change at line 926 skipping to change at line 926
for assignment in assignments: for assignment in assignments:
a = {} a = {}
if assignment['type'] == self._GROUP_SYSTEM: if assignment['type'] == self._GROUP_SYSTEM:
a['group_id'] = assignment['actor_id'] a['group_id'] = assignment['actor_id']
elif assignment['type'] == self._USER_SYSTEM: elif assignment['type'] == self._USER_SYSTEM:
a['user_id'] = assignment['actor_id'] a['user_id'] = assignment['actor_id']
a['role_id'] = assignment['role_id'] a['role_id'] = assignment['role_id']
a['system'] = {'all': True} a['system'] = {'all': True}
system_assignments.append(a) system_assignments.append(a)
for i, assignment in enumerate(system_assignments): if role_id:
if role_id and role_id != assignment['role_id']: system_assignments = [
system_assignments.pop(i) sa for sa in system_assignments
if role_id == sa['role_id']
]
assignments = [] assignments = []
for assignment in itertools.chain( for assignment in itertools.chain(
project_and_domain_assignments, system_assignments): project_and_domain_assignments, system_assignments):
assignments.append(assignment) assignments.append(assignment)
return assignments return assignments
def list_role_assignments(self, role_id=None, user_id=None, group_id=None, def list_role_assignments(self, role_id=None, user_id=None, group_id=None,
system=None, domain_id=None, project_id=None, system=None, domain_id=None, project_id=None,
 End of changes. 1 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)