From b3aed5f8dc14366d65cc75177fd91ea2eb81b379 Mon Sep 17 00:00:00 2001 From: xu-haiwei Date: Tue, 6 Sep 2016 04:33:25 +0000 Subject: [PATCH] Show 'dependents' property in node details Change-Id: Ib905a01553b66b009439d624d01ce76e74189506 --- senlinclient/tests/unit/v1/test_shell.py | 1 + senlinclient/v1/node.py | 1 + senlinclient/v1/shell.py | 1 + 3 files changed, 3 insertions(+) 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 ac995e9e..d57f7db2 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -1156,6 +1156,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']: