Remove duplicated list conversion
Change-Id: I4565e5c996b5a2d66a4f1da60871b5afd68fcedf
This commit is contained in:
parent
e4c0c8deef
commit
0d9266429e
|
@ -229,7 +229,7 @@ class Manager(manager.Manager):
|
|||
# Use set() to process the list to remove any duplicates
|
||||
project_ids = list(set([x['project_id'] for x in assignment_list
|
||||
if x.get('project_id')]))
|
||||
return self.resource_api.list_projects_from_ids(list(project_ids))
|
||||
return self.resource_api.list_projects_from_ids(project_ids)
|
||||
|
||||
# TODO(henry-nash): We might want to consider list limiting this at some
|
||||
# point in the future.
|
||||
|
|
Loading…
Reference in New Issue