Revision decd5f45 lib/rpc.py

b/lib/rpc.py
324 324
  return c.getresult().get(node, False)
325 325

  
326 326

  
327
def call_instance_run_rename(node, inst, old_name, osdev, swapdev):
328
  """Run the OS rename script for an instance.
329

  
330
  This is a single-node call.
331

  
332
  """
333
  params = [inst.Dumps(), old_name, osdev, swapdev]
334
  c = Client("instance_run_rename", params)
335
  c.connect(node)
336
  c.run()
337
  return c.getresult().get(node, False)
338

  
339

  
327 340
def call_instance_info(node, instance):
328 341
  """Returns information about a single instance.
329 342

  

Also available in: Unified diff