Fix incorrect help message on flavor_access action
The help message of params "flavor" and "tenant" is incorrect on do_flavor_access_add and do_flavor_access_remove. Change-Id: I66c45316181307305a19aec25acefc019cd7bdfc Closes-Bug: #1258453
This commit is contained in:
parent
6724b2e30d
commit
dd4bc08dd9
@ -720,9 +720,9 @@ def do_flavor_access_list(cs, args):
|
||||
|
||||
@utils.arg('flavor',
|
||||
metavar='<flavor>',
|
||||
help="Filter results by flavor name or ID.")
|
||||
help="Flavor name or ID to add access for the given tenant.")
|
||||
@utils.arg('tenant', metavar='<tenant_id>',
|
||||
help='Filter results by tenant ID.')
|
||||
help='Tenant ID to add flavor access for.')
|
||||
def do_flavor_access_add(cs, args):
|
||||
"""Add flavor access for the given tenant."""
|
||||
flavor = _find_flavor_for_admin(cs, args.flavor)
|
||||
@ -733,9 +733,9 @@ def do_flavor_access_add(cs, args):
|
||||
|
||||
@utils.arg('flavor',
|
||||
metavar='<flavor>',
|
||||
help="Filter results by flavor name or ID.")
|
||||
help="Flavor name or ID to remove access for the given tenant.")
|
||||
@utils.arg('tenant', metavar='<tenant_id>',
|
||||
help='Filter results by tenant ID.')
|
||||
help='Tenant ID to remove flavor access for.')
|
||||
def do_flavor_access_remove(cs, args):
|
||||
"""Remove flavor access for the given tenant."""
|
||||
flavor = _find_flavor_for_admin(cs, args.flavor)
|
||||
|
@ -600,9 +600,9 @@ def do_flavor_access_list(cs, args):
|
||||
|
||||
@utils.arg('flavor',
|
||||
metavar='<flavor>',
|
||||
help="Filter results by flavor name or ID.")
|
||||
help="Flavor name or ID to add access for the given tenant.")
|
||||
@utils.arg('tenant', metavar='<tenant_id>',
|
||||
help='Filter results by tenant ID.')
|
||||
help='Tenant ID to add flavor access for.')
|
||||
def do_flavor_access_add(cs, args):
|
||||
"""Add flavor access for the given tenant."""
|
||||
flavor = _find_flavor(cs, args.flavor)
|
||||
@ -613,9 +613,9 @@ def do_flavor_access_add(cs, args):
|
||||
|
||||
@utils.arg('flavor',
|
||||
metavar='<flavor>',
|
||||
help="Filter results by flavor name or ID.")
|
||||
help="Flavor name or ID to remove access for the given tenant.")
|
||||
@utils.arg('tenant', metavar='<tenant_id>',
|
||||
help='Filter results by tenant ID.')
|
||||
help='Tenant ID to remove flavor access for.')
|
||||
def do_flavor_access_remove(cs, args):
|
||||
"""Remove flavor access for the given tenant."""
|
||||
flavor = _find_flavor(cs, args.flavor)
|
||||
|
Loading…
x
Reference in New Issue
Block a user