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
This commit is contained in:
Steven Hardy
2013-12-31 14:32:59 +00:00
parent e9897ff9b9
commit 30e0f049ff

View File

@@ -452,7 +452,8 @@ def do_resource_show(hc, args):
@utils.arg('resource', metavar='<RESOURCE>',
help='Name of the resource to generate a template for.')
@utils.arg('-F', '--format', metavar='<FORMAT>',
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}