Fix profile list
Change field 'type_name' to 'type' in profile list, because 'type' is used on openstacksdk side, use 'type_name' made type field show noting when running 'senlin profile-list'. Change-Id: I78c7f2e2f3e855964d0883927489dc7127206f9b
This commit is contained in:
parent
2b0d0acab1
commit
738c0527d5
|
@ -119,7 +119,7 @@ class ShellTest(testtools.TestCase):
|
|||
service = mock.Mock()
|
||||
profiles = mock.Mock()
|
||||
service.profiles.return_value = profiles
|
||||
fields = ['id', 'name', 'type_name', 'created_at']
|
||||
fields = ['id', 'name', 'type', 'created_at']
|
||||
args = {
|
||||
'limit': 20,
|
||||
'marker': 'mark_id',
|
||||
|
|
|
@ -108,7 +108,7 @@ def do_profile_type_show(service, args):
|
|||
def do_profile_list(service, args=None):
|
||||
"""List profiles that meet the criteria."""
|
||||
show_deprecated('senlin profile-list', 'openstack cluster profile list')
|
||||
fields = ['id', 'name', 'type_name', 'created_at']
|
||||
fields = ['id', 'name', 'type', 'created_at']
|
||||
queries = {
|
||||
'limit': args.limit,
|
||||
'marker': args.marker,
|
||||
|
|
Loading…
Reference in New Issue