Merge "Fix --max-count handling for nova-manage cell_v2 map_instances"
This commit is contained in:
commit
762c89f85a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue