Merge "List accelerators for all-tenants by default"

This commit is contained in:
Zuul 2018-11-29 01:24:12 +00:00 committed by Gerrit Code Review
commit 476231882a
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