Revision 07813a9e lib/backend.py

b/lib/backend.py
856 856
  return block_devices
857 857

  
858 858

  
859
def StartInstance(instance, extra_args):
859
def StartInstance(instance):
860 860
  """Start an instance.
861 861

  
862 862
  @type instance: L{objects.Instance}
......
873 873
  try:
874 874
    block_devices = _GatherAndLinkBlockDevs(instance)
875 875
    hyper = hypervisor.GetHypervisor(instance.hypervisor)
876
    hyper.StartInstance(instance, block_devices, extra_args)
876
    hyper.StartInstance(instance, block_devices)
877 877
  except errors.BlockDeviceError, err:
878 878
    logging.exception("Failed to start instance")
879 879
    return (False, "Block device error: %s" % str(err))
......
941 941
  return (True, "Instance has been shutdown successfully")
942 942

  
943 943

  
944
def InstanceReboot(instance, reboot_type, extra_args):
944
def InstanceReboot(instance, reboot_type):
945 945
  """Reboot an instance.
946 946

  
947 947
  @type instance: L{objects.Instance}
......
980 980
      stop_result = InstanceShutdown(instance)
981 981
      if not stop_result[0]:
982 982
        return stop_result
983
      return StartInstance(instance, extra_args)
983
      return StartInstance(instance)
984 984
    except errors.HypervisorError, err:
985 985
      msg = "Failed to hard reboot instance %s: %s" % (instance.name, err)
986 986
      logging.error(msg)

Also available in: Unified diff