From e366273a9e4c61957a5f51278c737f29064ae69b Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Tue, 18 Oct 2011 16:01:39 +0100
Subject: [PATCH] Revert "rapi.client.ModifyNode should PUT rather than POST"

This was a mistake on my side because ModifyGroup and ModifyInstance
were PUT, and I was not aware of the discussion and the rationale why
this one had to be POST.

This reverts commit 55ef0cf6497c570aaab9413851435a7ee744222e.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 lib/rapi/client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rapi/client.py b/lib/rapi/client.py
index 899ff0b24..213712ddd 100644
--- a/lib/rapi/client.py
+++ b/lib/rapi/client.py
@@ -1466,7 +1466,7 @@ class GanetiRapiClient(object): # pylint: disable=R0904
     @return: job id
 
     """
-    return self._SendRequest(HTTP_PUT,
+    return self._SendRequest(HTTP_POST,
                              ("/%s/nodes/%s/modify" %
                               (GANETI_RAPI_VERSION, node)), None, kwargs)
 
-- 
GitLab