Merge "Fix --max-count handling for nova-manage cell_v2 map_instances"

This commit is contained in:
Jenkins 2017-09-27 22:59:01 +00:00 committed by Gerrit Code Review
commit 762c89f85a
1 changed files with 5 additions and 4 deletions

View File

@ -1444,10 +1444,11 @@ class CellV2Commands(object):
marker = instances[-1].uuid
return marker
@args('--cell_uuid', metavar='<cell_uuid>', required=True,
help='Unmigrated instances will be mapped to the cell with the '
'uuid provided.')
@args('--max-count', metavar='<max_count>',
@args('--cell_uuid', metavar='<cell_uuid>', dest='cell_uuid',
required=True,
help='Unmigrated instances will be mapped to the cell with the '
'uuid provided.')
@args('--max-count', metavar='<max_count>', dest='max_count',
help='Maximum number of instances to map')
def map_instances(self, cell_uuid, max_count=None):
"""Map instances into the provided cell.