diff --git a/senlinclient/tests/unit/v1/test_shell.py b/senlinclient/tests/unit/v1/test_shell.py index 5e722b0..8cd23e5 100644 --- a/senlinclient/tests/unit/v1/test_shell.py +++ b/senlinclient/tests/unit/v1/test_shell.py @@ -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 diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index 78a743b..ac5380a 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -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)