Group show command should be in V3
Group feature was introduced in Cinder V3, So the command should be there as well. But the "group show" command is in V2 which is wrong. Change-Id: If3ba44b2b188607542bdadfeb58f8e4b363837b7 Closes-bug: #1663496
This commit is contained in:
@@ -2129,19 +2129,6 @@ def do_consisgroup_show(cs, args):
|
||||
utils.print_dict(info)
|
||||
|
||||
|
||||
@utils.arg('group',
|
||||
metavar='<group>',
|
||||
help='Name or ID of a group.')
|
||||
def do_group_show(cs, args):
|
||||
"""Shows details of a group."""
|
||||
info = dict()
|
||||
group = shell_utils.find_group(cs, args.group)
|
||||
info.update(group._info)
|
||||
|
||||
info.pop('links', None)
|
||||
utils.print_dict(info)
|
||||
|
||||
|
||||
@utils.arg('volumetypes',
|
||||
metavar='<volume-types>',
|
||||
help='Volume types.')
|
||||
|
||||
@@ -762,6 +762,20 @@ def do_group_list(cs, args):
|
||||
utils.print_list(groups, columns)
|
||||
|
||||
|
||||
@api_versions.wraps('3.13')
|
||||
@utils.arg('group',
|
||||
metavar='<group>',
|
||||
help='Name or ID of a group.')
|
||||
def do_group_show(cs, args):
|
||||
"""Shows details of a group."""
|
||||
info = dict()
|
||||
group = shell_utils.find_group(cs, args.group)
|
||||
info.update(group._info)
|
||||
|
||||
info.pop('links', None)
|
||||
utils.print_dict(info)
|
||||
|
||||
|
||||
@api_versions.wraps('3.13')
|
||||
@utils.arg('grouptype',
|
||||
metavar='<group-type>',
|
||||
|
||||
Reference in New Issue
Block a user