Revision 1f350e0f lib/rapi/client.py

b/lib/rapi/client.py
1031 1031
                              (GANETI_RAPI_VERSION, instance)), query, None)
1032 1032

  
1033 1033
  def ShutdownInstance(self, instance, dry_run=False, no_remember=False,
1034
                       **kwargs):
1034
                       reason=None, **kwargs):
1035 1035
    """Shuts down an instance.
1036 1036

  
1037 1037
    @type instance: str
......
1040 1040
    @param dry_run: whether to perform a dry run
1041 1041
    @type no_remember: bool
1042 1042
    @param no_remember: if true, will not record the state change
1043
    @type reason: string
1044
    @param reason: the reason for the shutdown
1043 1045
    @rtype: string
1044 1046
    @return: job id
1045 1047

  
......
1049 1051

  
1050 1052
    _AppendDryRunIf(query, dry_run)
1051 1053
    _AppendIf(query, no_remember, ("no_remember", 1))
1054
    _AppendIf(query, reason, ("reason", reason))
1052 1055

  
1053 1056
    return self._SendRequest(HTTP_PUT,
1054 1057
                             ("/%s/instances/%s/shutdown" %

Also available in: Unified diff