Am 24. Oktober 2011 18:46 schrieb Michael Hanselmann <[email protected]>:
>  lib/build/rpc_definitions.py |    2 +-
>  lib/rpc.py                   |  215 
> ------------------------------------------
>  2 files changed, 1 insertions(+), 216 deletions(-)

Interdiff (need to convert this later):

--- a/lib/rpc.py
+++ b/lib/rpc.py
@@ -674,6 +674,17 @@ class RpcRunner(_generated_rpc.RpcClientDefault):
     idict = self._InstDict(instance, hvp=hvp, bep=bep)
     return self._SingleNodeCall(node, "instance_start", [idict,
startup_paused])

+  @_RpcTimeout(_TMO_1DAY)
+  def call_instance_os_add(self, node, inst, reinstall, debug, osparams=None):
+    """Installs an OS on the given instance.
+
+    This is a single-node call.
+
+    """
+    return self._SingleNodeCall(node, "instance_os_add",
+                                [self._InstDict(inst, osp=osparams),
+                                 reinstall, debug])
+
   @classmethod
   @_RpcTimeout(_TMO_FAST)
   def call_node_start_master_daemons(cls, node, no_voting):

Reply via email to