Commit d71369d7 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

RAPI: Fix wrong check on instance shutdown

Commit 7fa310f6

 (April 1st, 2011) converted the RAPI resource for
shutting down an instance to FillOpCode. Unfortunately it missed the
fact that the shutdown resource gets its parameters as query arguments.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent fa411651
......@@ -922,8 +922,6 @@ class R_2_instances_name_shutdown(baserlib.R_Generic):
@return: a job id
"""
baserlib.CheckType(self.request_body, dict, "Body contents")
no_remember = bool(self._checkIntVariable("no_remember"))
op = _ParseShutdownInstanceRequest(self.items[0], self.request_body,
bool(self.dryRun()), no_remember)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment