Apply list_formatter on two properties
Apply the 'list_formatter' from 'utils' on two properties of operation 'show-action' that are, 'depended_by' and 'depends_on'. Change-Id: Ia4a7c516778a9c9188eda610bebb061684cf5b01 Closes-Bug: #1544098
This commit is contained in:
@@ -1266,6 +1266,8 @@ class ShellTest(testtools.TestCase):
|
||||
'outputs': utils.json_formatter,
|
||||
'metadata': utils.json_formatter,
|
||||
'data': utils.json_formatter,
|
||||
'depends_on': utils.list_formatter,
|
||||
'depended_by': utils.list_formatter,
|
||||
}
|
||||
sh.do_action_show(service, args)
|
||||
service.get_action.assert_called_once_with('action_id')
|
||||
|
||||
@@ -1181,6 +1181,8 @@ def do_action_show(service, args):
|
||||
'outputs': utils.json_formatter,
|
||||
'metadata': utils.json_formatter,
|
||||
'data': utils.json_formatter,
|
||||
'depends_on': utils.list_formatter,
|
||||
'depended_by': utils.list_formatter,
|
||||
}
|
||||
|
||||
utils.print_dict(action.to_dict(), formatters=formatters)
|
||||
|
||||
Reference in New Issue
Block a user