List accelerators for all-tenants by default

This patch fixes the following bug :
FPGA resources already been reported in DB but cyborg accelerator-list
returns none
Story: #2004424
Task: #28076

Change-Id: Id2937563145c36ab371d2ee2b013e906895297a3
This commit is contained in:
Yumeng Bao 2018-11-26 02:02:33 -08:00
parent be87568d82
commit d63b85870f
1 changed files with 5 additions and 1 deletions

View File

@ -165,7 +165,11 @@ class AcceleratorsController(AcceleratorsControllerBase):
@expose.expose(AcceleratorCollection, int, types.uuid, wtypes.text,
wtypes.text, types.boolean)
def get_all(self, limit=None, marker=None, sort_key='id', sort_dir='asc',
all_tenants=None):
all_tenants=True):
# FIXME(Yumeng) we changed the default option of all-tenants to True
# to avoid an error where accelerator_list returns none all the time.
# we'll fix it when acc's project related info ready.
"""Retrieve a list of accelerators.
:param limit: Optional, to determinate the maximum number of