Merge "Fix incompatible headers on OS share group type list"
This commit is contained in:
commit
48a1b0ac66
@ -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):
|
||||
|
@ -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',
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user