diff --git a/senlinclient/tests/unit/v1/test_shell.py b/senlinclient/tests/unit/v1/test_shell.py index 1bed2cab..dd682b7f 100644 --- a/senlinclient/tests/unit/v1/test_shell.py +++ b/senlinclient/tests/unit/v1/test_shell.py @@ -1083,7 +1083,7 @@ class ShellTest(testtools.TestCase): @mock.patch.object(utils, 'print_list') def test_do_node_list(self, mock_print): service = mock.Mock() - fields = ['id', 'name', 'status', 'cluster_id', 'physical_id', + fields = ['id', 'name', 'index', 'status', 'cluster_id', 'physical_id', 'profile_name', 'created_at', 'updated_at'] args = { 'cluster': 'cluster1', @@ -1318,7 +1318,7 @@ class ShellTest(testtools.TestCase): def test_do_action_list(self, mock_print): service = mock.Mock() fields = ['id', 'name', 'action', 'status', 'target', 'depends_on', - 'depended_by'] + 'depended_by', 'created_at'] args = { 'sort_keys': 'status', 'sort_dir': 'asc', diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index dd946b62..36130251 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -873,7 +873,7 @@ def do_cluster_policy_disable(service, args): def do_node_list(service, args): """Show list of nodes.""" - fields = ['id', 'name', 'status', 'cluster_id', 'physical_id', + fields = ['id', 'name', 'index', 'status', 'cluster_id', 'physical_id', 'profile_name', 'created_at', 'updated_at'] sort_keys = ['index', 'name', 'created_at', 'updated_at', 'status'] @@ -1255,7 +1255,7 @@ def do_action_list(service, args): """List actions.""" fields = ['id', 'name', 'action', 'status', 'target', 'depends_on', - 'depended_by'] + 'depended_by', 'created_at'] sort_keys = ['name', 'target', 'action', 'created_at', 'status'] queries = {