Revise `senlin service-list`

This patch revises the field name of `senlin service-list`.

Change-Id: Ie417d31bb2ccdcd9861f7d4da2e8ff1a9e6070bc
This commit is contained in:
jonnary 2017-07-20 03:11:41 +08:00
parent 7f05b87af8
commit 734c10829f
2 changed files with 4 additions and 4 deletions

View File

@ -1819,8 +1819,8 @@ class ShellTest(testtools.TestCase):
@mock.patch.object(utils, 'print_list')
def test_do_service_list(self, mock_print):
service = mock.Mock()
fields = ['Binary', 'Host', 'Status', 'State', 'Updated_at',
'Disabled Reason']
fields = ['binary', 'host', 'status', 'state', 'updated_at',
'disabled_reason']
result = mock.Mock()
service.services.return_value = result

View File

@ -1771,8 +1771,8 @@ def do_service_list(service, args=None):
"""Show a list of all running services."""
show_deprecated('senlin service-list',
'openstack cluster service list')
fields = ['Binary', 'Host', 'Status', 'State', 'Updated_at',
'Disabled Reason']
fields = ['binary', 'host', 'status', 'state', 'updated_at',
'disabled_reason']
queries = {}
result = service.services(**queries)