Fix senlin help receiver-list

There are problems for argparse to parse some metava formats. This patch
fixes the bug originated from this limitation when showing help for the
command 'receiver-list'.

Closes-Bug: #1550668
Change-Id: I973280766d3d0ac1a459293b1605368d8874b416
This commit is contained in:
tengqm
2016-02-27 10:37:41 -05:00
parent ebcaa2aabb
commit cb07df5cd2

View File

@@ -952,7 +952,7 @@ def do_node_update(service, args):
help=_('Limit the number of receivers returned.'))
@utils.arg('-m', '--marker', metavar='<ID>',
help=_('Only return receivers that appear after the given ID.'))
@utils.arg('-o', '--sort', metavar='<KEY[:DIR]>',
@utils.arg('-o', '--sort', metavar='<KEY:DIR>',
help=_('Sorting option which is a string containing a list of keys '
'separated by commas. Each key can be optionally appened by '
'a sort direction (:asc or :desc)'))
@@ -962,7 +962,7 @@ def do_node_update(service, args):
'checking. Default is False.'))
@utils.arg('-F', '--full-id', default=False, action="store_true",
help=_('Print full IDs in list.'))
def do_receiver_list(service, args=None):
def do_receiver_list(service, args):
"""List receivers that meet the criteria."""
fields = ['id', 'name', 'type', 'cluster_id', 'action', 'created_at']
queries = {