Revision aa922d64 lib/rapi/client.py

b/lib/rapi/client.py
1001 1001
                              (GANETI_RAPI_VERSION, instance)), query, None)
1002 1002

  
1003 1003
  def RebootInstance(self, instance, reboot_type=None, ignore_secondaries=None,
1004
                     dry_run=False, reason_text=None):
1004
                     dry_run=False):
1005 1005
    """Reboots an instance.
1006 1006

  
1007 1007
    @type instance: str
......
1013 1013
        while re-assembling disks (in hard-reboot mode only)
1014 1014
    @type dry_run: bool
1015 1015
    @param dry_run: whether to perform a dry run
1016
    @type reason_text: string
1017
    @param reason_text: the reason for the reboot
1018 1016
    @rtype: string
1019 1017
    @return: job id
1020 1018

  
......
1024 1022
    _AppendIf(query, reboot_type, ("type", reboot_type))
1025 1023
    _AppendIf(query, ignore_secondaries is not None,
1026 1024
              ("ignore_secondaries", ignore_secondaries))
1027
    _AppendIf(query, reason_text, ("reason_text", reason_text))
1028 1025

  
1029 1026
    return self._SendRequest(HTTP_POST,
1030 1027
                             ("/%s/instances/%s/reboot" %

Also available in: Unified diff