From 30e0f049ffb9c0d3945fdb9995cff9f1e7d782d1 Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Tue, 31 Dec 2013 14:32:59 +0000 Subject: [PATCH] Fix help formatting for resource-template Only the keys, not the functions should be printed, or the output text is confusing Closes-Bug: #1265194 Change-Id: Iaeb6e44ce0988d165609d261ab640b82db4a7ea4 --- heatclient/v1/shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/heatclient/v1/shell.py b/heatclient/v1/shell.py index 0919da5c..3f4dba73 100644 --- a/heatclient/v1/shell.py +++ b/heatclient/v1/shell.py @@ -452,7 +452,8 @@ def do_resource_show(hc, args): @utils.arg('resource', metavar='', help='Name of the resource to generate a template for.') @utils.arg('-F', '--format', metavar='', - help="The template output format. %s" % utils.supported_formats) + help="The template output format, one of: %s" + % ', '.join(utils.supported_formats.keys())) def do_resource_template(hc, args): '''Generate a template based on a resource.''' fields = {'resource_name': args.resource}