@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('--password', metavar='<password>', dest='password', help=_('The admin password to be set in the rescue environment.'))
@utils.arg('--image', metavar='<image>', dest='image', help=_('The image to rescue with.'))
def do_rescue(cs, args):
 kwargs = {}
 if args.image:
  kwargs['image'] = _find_image(cs, args.image)
 if args.password:
  kwargs['password'] = args.password
 utils.print_dict(_find_server(cs, args.server).rescue(**kwargs)[1])

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( '--password' , metavar = '<password>' , dest = 'password' , help = _ ( 'The admin password to be set in the rescue environment.' ) ) @ utils . arg ( '--image' , metavar = '<image>' , dest = 'image' , help = _ ( 'The image to rescue with.' ) ) def do_rescue ( cs , args ) : kwargs = { } if args . image : kwargs [ 'image' ] = _find_image ( cs , args . image ) if args . password : kwargs [ 'password' ] = args . password utils . print_dict ( _find_server ( cs , args . server ) . rescue ( ** kwargs ) [ 1 ] )
reboots a server into rescue mode .