Revision ae48ac32 lib/backend.py

b/lib/backend.py
977 977
      return (False, msg)
978 978
  elif reboot_type == constants.INSTANCE_REBOOT_HARD:
979 979
    try:
980
      InstanceShutdown(instance)
981
      StartInstance(instance, extra_args)
980
      stop_result = InstanceShutdown(instance)
981
      if not stop_result[0]:
982
        return stop_result
983
      return StartInstance(instance, extra_args)
982 984
    except errors.HypervisorError, err:
983 985
      msg = "Failed to hard reboot instance %s: %s" % (instance.name, err)
984 986
      logging.error(msg)

Also available in: Unified diff