Merge "Show 'dependents' property in node details"

This commit is contained in:
Jenkins 2016-09-15 06:10:18 +00:00 committed by Gerrit Code Review
commit ff369bd963
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

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