From 8947cd3e5924d44846a8fc7c68266d4ccee0c3cc Mon Sep 17 00:00:00 2001 From: Song Li Date: Mon, 22 Dec 2014 14:11:57 +0800 Subject: [PATCH] Format attributes as JSON in resource-show output Format the attributes as indented JSON to improve the output format of command resource-show. Change-Id: I5a72f12c7710c782cbc0e89483d271ab86bddc3c Closes-Bug: #1394094 --- heatclient/v1/shell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/heatclient/v1/shell.py b/heatclient/v1/shell.py index ee3328a9..ba864a46 100644 --- a/heatclient/v1/shell.py +++ b/heatclient/v1/shell.py @@ -765,6 +765,7 @@ def do_resource_show(hc, args): {'id': args.id, 'resource': args.resource}) else: formatters = { + 'attributes': utils.json_formatter, 'links': utils.link_formatter, 'required_by': utils.newline_list_formatter }