Remove duplicated list conversion

Change-Id: I4565e5c996b5a2d66a4f1da60871b5afd68fcedf
This commit is contained in:
zlyqqq 2017-06-28 23:51:37 +08:00
parent e4c0c8deef
commit 0d9266429e
1 changed files with 1 additions and 1 deletions

View File

@ -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.