Fix incompatible headers on OS share group type list
Headers should be displayed in camel case and with blank spaces between words now, instead of underscores. Closes-Bug: #1973759 Change-Id: I75b1aff12dac059ac7192e58a70df86b5db833c6
This commit is contained in:
parent
bf2c7a26d6
commit
2f11d143e0
@ -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