Merge "Remove unused hints from assignment APIs"
This commit is contained in:
commit
d5ed4a7c04
|
@ -266,8 +266,7 @@ class ProjectAssignmentV3(controller.V3Controller):
|
|||
@controller.filterprotected('domain_id', 'enabled', 'name')
|
||||
def list_user_projects(self, request, filters, user_id):
|
||||
hints = ProjectAssignmentV3.build_driver_hints(request, filters)
|
||||
refs = self.assignment_api.list_projects_for_user(user_id,
|
||||
hints=hints)
|
||||
refs = self.assignment_api.list_projects_for_user(user_id)
|
||||
return ProjectAssignmentV3.wrap_collection(request.context_dict,
|
||||
refs,
|
||||
hints=hints)
|
||||
|
|
|
@ -223,7 +223,7 @@ class Manager(manager.Manager):
|
|||
|
||||
# TODO(henry-nash): We might want to consider list limiting this at some
|
||||
# point in the future.
|
||||
def list_projects_for_user(self, user_id, hints=None):
|
||||
def list_projects_for_user(self, user_id):
|
||||
assignment_list = self.list_role_assignments(
|
||||
user_id=user_id, effective=True)
|
||||
# Use set() to process the list to remove any duplicates
|
||||
|
@ -233,7 +233,7 @@ class Manager(manager.Manager):
|
|||
|
||||
# TODO(henry-nash): We might want to consider list limiting this at some
|
||||
# point in the future.
|
||||
def list_domains_for_user(self, user_id, hints=None):
|
||||
def list_domains_for_user(self, user_id):
|
||||
assignment_list = self.list_role_assignments(
|
||||
user_id=user_id, effective=True)
|
||||
# Use set() to process the list to remove any duplicates
|
||||
|
|
Loading…
Reference in New Issue