diff --git a/senlinclient/tests/unit/v1/test_shell.py b/senlinclient/tests/unit/v1/test_shell.py index c7a520bd..a924828b 100644 --- a/senlinclient/tests/unit/v1/test_shell.py +++ b/senlinclient/tests/unit/v1/test_shell.py @@ -1420,6 +1420,7 @@ class ShellTest(testtools.TestCase): formatters = { 'metadata': utils.json_formatter, 'data': utils.json_formatter, + 'dependents': utils.json_formatter, } data = mock.Mock() node.to_dict.return_value = data diff --git a/senlinclient/v1/node.py b/senlinclient/v1/node.py index 367b4eb4..18a9b934 100644 --- a/senlinclient/v1/node.py +++ b/senlinclient/v1/node.py @@ -154,6 +154,7 @@ def _show_node(senlin_client, node_id, show_details=False): formatters = { 'metadata': senlin_utils.json_formatter, 'data': senlin_utils.json_formatter, + 'dependents': senlin_utils.json_formatter, } data = node.to_dict() if show_details and data['details']: diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index 58a68124..ff93e254 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -1152,6 +1152,7 @@ def _show_node(service, node_id, show_details=False): formatters = { 'metadata': utils.json_formatter, 'data': utils.json_formatter, + 'dependents': utils.json_formatter, } data = node.to_dict() if show_details and data['details']: