summaryrefslogtreecommitdiff
path: root/keystone/api
diff options
context:
space:
mode:
Diffstat (limited to 'keystone/api')
-rw-r--r--keystone/api/role_assignments.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/keystone/api/role_assignments.py b/keystone/api/role_assignments.py
index d1cfd90c4..fe81cca0f 100644
--- a/keystone/api/role_assignments.py
+++ b/keystone/api/role_assignments.py
@@ -80,12 +80,12 @@ class RoleAssignmentsResource(ks_flask.ResourceBase):
'group.id', 'role.id', 'scope.domain.id', 'scope.project.id',
'scope.OS-INHERIT:inherited_to', 'user.id'
]
- target = {}
+ target = None
if 'scope.project.id' in flask.request.args:
project_id = flask.request.args['scope.project.id']
if project_id:
- target['project'] = PROVIDERS.resource_api.get_project(
- project_id)
+ target = {'project': PROVIDERS.resource_api.get_project(
+ project_id)}
ENFORCER.enforce_call(action='identity:list_role_assignments_for_tree',
filters=filters, target_attr=target)
if not flask.request.args.get('scope.project.id'):