Merge "Fix incompatible headers on OS share group type list"

This commit is contained in:
Zuul 2022-07-25 17:40:11 +00:00 committed by Gerrit Code Review
commit 48a1b0ac66
2 changed files with 8 additions and 7 deletions

View File

@ -207,10 +207,11 @@ class ListShareGroupType(command.Lister):
formatted_types.append(utils.format_share_group_type(
share_group_type, formatter))
column_headers = utils.format_column_headers(ATTRIBUTES)
values = (oscutils.get_dict_properties(
sgt, ATTRIBUTES) for sgt in formatted_types)
return (ATTRIBUTES, values)
return (column_headers, values)
class ShowShareGroupType(command.ShowOne):

View File

@ -25,12 +25,12 @@ from manilaclient.tests.unit.osc import osc_utils
from manilaclient.tests.unit.osc.v2 import fakes as manila_fakes
COLUMNS = [
'id',
'name',
'share_types',
'visibility',
'is_default',
'group_specs',
'ID',
'Name',
'Share Types',
'Visibility',
'Is Default',
'Group Specs',
]