@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('--poll', dest='poll', action='store_true', default=False, help=_('Report the server migration progress until it completes.'))
def do_migrate(cs, args):
 server = _find_server(cs, args.server)
 server.migrate()
 if args.poll:
  _poll_for_status(cs.servers.get, server.id, 'migrating', ['active', 'verify_resize'])

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( '--poll' , dest = 'poll' , action = 'store_true' , default = False , help = _ ( 'Report the server migration progress until it completes.' ) ) def do_migrate ( cs , args ) : server = _find_server ( cs , args . server ) server . migrate ( ) if args . poll : _poll_for_status ( cs . servers . get , server . id , 'migrating' , [ 'active' , 'verify_resize' ] )
migrate a server .