Profile list can not display the "type" column

Profile list can not display the "type" column

Change-Id: I028bc9c5a28e8242e87deb077f24c4b141536918
This commit is contained in:
miaohb
2016-09-08 15:53:06 +08:00
parent 5891cf9c18
commit 53f68624ea
4 changed files with 4 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ class TestProfileShow(TestProfile):
class TestProfileList(TestProfile):
columns = ['id', 'name', 'type', 'created_at']
columns = ['id', 'name', 'type_name', 'created_at']
data = {"profiles": [
{
"created_at": "2016-02-17T13:01:05",

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', 'created_at']
fields = ['id', 'name', 'type_name', 'created_at']
args = {
'limit': 20,
'marker': 'mark_id',

View File

@@ -129,7 +129,7 @@ class ListProfile(command.Lister):
senlin_client = self.app.client_manager.clustering
columns = ['id', 'name', 'type', 'created_at']
columns = ['id', 'name', 'type_name', 'created_at']
queries = {
'limit': parsed_args.limit,
'marker': parsed_args.marker,

View File

@@ -112,7 +112,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', 'created_at']
fields = ['id', 'name', 'type_name', 'created_at']
queries = {
'limit': args.limit,
'marker': args.marker,