Revision 007a2f3e lib/rpc.py

b/lib/rpc.py
311 311
  return c.getresult().get(node, False)
312 312

  
313 313

  
314
def call_instance_reboot(node, instance, reboot_type, extra_args):
315
  """Reboots an instance.
316

  
317
  This is a single-node call.
318

  
319
  """
320
  c = Client("instance_reboot", [instance.ToDict(), reboot_type, extra_args])
321
  c.connect(node)
322
  c.run()
323
  return c.getresult().get(node, False)
324

  
325

  
314 326
def call_instance_os_add(node, inst, osdev, swapdev):
315 327
  """Installs an OS on the given instance.
316 328

  

Also available in: Unified diff