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:
lvdongbing 2016-09-14 05:22:56 -04:00
parent 2b0d0acab1
commit 738c0527d5
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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,