Revision aa922d64 lib/server/noded.py

b/lib/server/noded.py
650 650
    instance = objects.Instance.FromDict(params[0])
651 651
    reboot_type = params[1]
652 652
    shutdown_timeout = params[2]
653
    (reason_source, reason_text) = params[3]
654
    reason_text = _DefaultAlternative(reason_text,
655
                                      constants.INSTANCE_REASON_REBOOT)
656
    reason = backend.InstReason(reason_source, reason_text)
657
    return backend.InstanceReboot(instance, reboot_type, shutdown_timeout,
658
                                  reason)
653
    return backend.InstanceReboot(instance, reboot_type, shutdown_timeout)
659 654

  
660 655
  @staticmethod
661 656
  def perspective_instance_balloon_memory(params):

Also available in: Unified diff