Merge "Revise senlin service-list
"
This commit is contained in:
commit
b26039a43c
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user