Show 'dependents' property in node details

Change-Id: Ib905a01553b66b009439d624d01ce76e74189506
This commit is contained in:
xu-haiwei 2016-09-06 04:33:25 +00:00
parent 26cc7dc595
commit b3aed5f8dc
3 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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']:

View File

@ -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']: