@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('flavor', metavar='<flavor>', help=_('Name or ID of new flavor.'))
@utils.arg('--poll', dest='poll', action='store_true', default=False, help=_('Report the server resize progress until it completes.'))
def do_resize(cs, args):
 server = _find_server(cs, args.server)
 flavor = _find_flavor(cs, args.flavor)
 kwargs = utils.get_resource_manager_extra_kwargs(do_resize, args)
 server.resize(flavor, **kwargs)
 if args.poll:
  _poll_for_status(cs.servers.get, server.id, 'resizing', ['active', 'verify_resize'])

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( 'flavor' , metavar = '<flavor>' , help = _ ( 'Name or ID of new flavor.' ) ) @ utils . arg ( '--poll' , dest = 'poll' , action = 'store_true' , default = False , help = _ ( 'Report the server resize progress until it completes.' ) ) def do_resize ( cs , args ) : server = _find_server ( cs , args . server ) flavor = _find_flavor ( cs , args . flavor ) kwargs = utils . get_resource_manager_extra_kwargs ( do_resize , args ) server . resize ( flavor , ** kwargs ) if args . poll : _poll_for_status ( cs . servers . get , server . id , 'resizing' , [ 'active' , 'verify_resize' ] )
resize a server .