Merge "Revise `senlin service-list`"

This commit is contained in:
Jenkins 2017-07-20 12:10:23 +00:00 committed by Gerrit Code Review
commit b26039a43c
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)