Merge "Show 'dependents' property in node details"
This commit is contained in:
commit
ff369bd963
@ -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
|
||||
|
@ -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']:
|
||||
|
@ -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']:
|
||||
|
Loading…
Reference in New Issue
Block a user