Skip to content
Snippets Groups Projects
Commit 55ef0cf6 authored by Guido Trotter's avatar Guido Trotter
Browse files

rapi.client.ModifyNode should PUT rather than POST


This was caught (albeit in a sibylline manner) by unittests on master
which are not present in 2.5.

Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 370f2042
No related branches found
No related tags found
No related merge requests found
...@@ -1466,7 +1466,7 @@ class GanetiRapiClient(object): # pylint: disable=R0904 ...@@ -1466,7 +1466,7 @@ class GanetiRapiClient(object): # pylint: disable=R0904
@return: job id @return: job id
""" """
return self._SendRequest(HTTP_POST, return self._SendRequest(HTTP_PUT,
("/%s/nodes/%s/modify" % ("/%s/nodes/%s/modify" %
(GANETI_RAPI_VERSION, node)), None, kwargs) (GANETI_RAPI_VERSION, node)), None, kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment