LGTM, thanks

On Tue, 27 Oct 2015 at 16:17 'Klaus Aehlig' via ganeti-devel <
[email protected]> wrote:

> Signed-off-by: Klaus Aehlig <[email protected]>
> ---
>  lib/rapi/client.py | 3 ++-
>  lib/rapi/rlib2.py  | 1 +
>  2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/lib/rapi/client.py b/lib/rapi/client.py
> index 65f82ab..b6ef576 100644
> --- a/lib/rapi/client.py
> +++ b/lib/rapi/client.py
> @@ -964,7 +964,7 @@ class GanetiRapiClient(object): # pylint: disable=R0904
>                               ("/%s/instances/%s/activate-disks" %
>                                (GANETI_RAPI_VERSION, instance)), query,
> None)
>
> -  def DeactivateInstanceDisks(self, instance, reason=None):
> +  def DeactivateInstanceDisks(self, instance, reason=None, force=False):
>      """Deactivates an instance's disks.
>
>      @type instance: string
> @@ -976,6 +976,7 @@ class GanetiRapiClient(object): # pylint: disable=R0904
>
>      """
>      query = []
> +    _AppendForceIf(query, force)
>      _AppendReason(query, reason)
>      return self._SendRequest(HTTP_PUT,
>                               ("/%s/instances/%s/deactivate-disks" %
> diff --git a/lib/rapi/rlib2.py b/lib/rapi/rlib2.py
> index 8fee8fb..34b4124 100644
> --- a/lib/rapi/rlib2.py
> +++ b/lib/rapi/rlib2.py
> @@ -1395,6 +1395,7 @@ class
> R_2_instances_name_deactivate_disks(baserlib.OpcodeResource):
>      """
>      return ({}, {
>        "instance_name": self.items[0],
> +      "force": self.useForce(),
>        })
>
>
> --
> 2.6.0.rc2.230.g3dd15c0
>
> --

Helga Velroyen
Software Engineer
[email protected]

Google Germany GmbH
Dienerstraße 12
80331 München

Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und
löschen Sie die E-Mail und alle Anhänge. Vielen Dank.

This e-mail is confidential. If you are not the right addressee please do
not forward it, please inform the sender, and please erase this e-mail
including any attachments. Thanks.

Reply via email to